29.08.2015, 19:18
Quote:
|
This is not changing its special action to NONE after HANDSUP,
CMD:handsup(playerid, params[]) { if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); } return 1; } CMD:handsdown(playerid, params[]) { if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NON E); } return 1; } why is that help me fast guys |
PHP код:
CMD:handsup(playerid, params[])
{
if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE) {
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
} else if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP) {
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
return 1;
}


