#include <a_samp>
#include <zcmd>
#include <sscanf2>
if(GetPlayerHealth(playerid) > 10)
{
ApplyAnimation(playerid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
}
CMD:berak(playerid, params[])
{
new id;
if(sscanf(params, \"u\", id)) return SendClientMessage(playerid, -1, \"Használat: /berak [id]\");
if(id == playerid) return SendClientMessage(playerid, -1, \"Magadat??\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, \"Nem található ID.\");
else {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, \"Sofõrként nem lehet\");
else {
PutPlayerInVehicle(id, GetPlayerVehicleID(playerid));
SendClientMessage(playerid, -1, \"Beraktad.\");
SendClientMessage(id, -1, \"Beraktak.\");
}
}
return 1;
}
Tessék, nem teszteltem.