06.05.2018, 18:21
Hello This command is worked only for first Player joined! If someone joined after Him! he can't use this command Why??
I wan't this command for all CIVILIAN worked not only for 1person!! How?
I wan't this command for all CIVILIAN worked not only for 1person!! How?
PHP код:
CMD:breakcuff(playerid, params[])
{
if(PoliceTeam(GetPlayerSkin(playerid))) return SendClientMessage(playerid, -1, "{ff0000}Error: {Ffffff}Only Civilian can use this comamnd.");
{
new targetid;
if(BeginArrested[targetid] == 1 && Civilian(GetPlayerSkin(targetid)))
{
KillTimer(BeginArrestedTime[targetid]);
SendClientMessage(targetid, -1, "{FF7000}YOU HAVE BEEN ESCAPED FROM ARRESTED!!! RUN RUN !!!!");
SetPlayerWantedLevel(targetid, 3);
SetPlayerColor(targetid, YELLOW);
GameTextForPlayer(targetid, "~Y~ESCAPED FROM ~G~ARRESTED ~P~ RUN BABY!!!", 7000, 5);
SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NONE);
BeginArrested[targetid] = 0;
}
else if SendClientMessage(targetid, -1, "{FF0000}Error: {FFFFFF}You can use this command only while be cuffed or arrested.");
}
return 1;
}