08.10.2013, 12:14
How to check if player is using animation BOMBER.
(if .......)
Awarding anyone who can help with +rep.
(if .......)
Awarding anyone who can help with +rep.
new bool:HandsAreUp[MAX_PLAYERS];
CMD:handsup(playerid, params[])
{
//do the animation
HandsAreUp[playerid] = true;
return 1;
}
CMD:cuff(playerid,params[])
{
//sscanf code.
if(!HandsAreUp[targetid]) SendClientMessage(playerid,-1,"ERROR: That person's hands are not up!");
//cuff animation code - setting objects etc.
return 1;
}
new bool:HandsAreUp[MAX_PLAYERS];
CMD:handsup(playerid, params[])
{
//do the animation
HandsAreUp[playerid] = true;
return 1;
}
CMD:cuff(playerid,params[])
{
new targetid;
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"USAGE: /cuff [PlayerId/PartOfName]");
if(!HandsAreUp[targetid]) SendClientMessage(playerid,-1,"ERROR: That person's hands are not up!");
//cuff animation code - setting objects etc.
return 1;
}