03.05.2010, 05:26
Код:
if (strcmp("/sitchair", cmdtext, true, 10) == 0) { if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { SendClientMessage(playerid, COLOR_YELLOW, "This can't be used when not on foot!"); return 1; } ApplyAnimation(playerid, "FOOD", "FF_Sit_Look", 3.1, 1,0,0,0,0); GameTextForPlayer(playerid, " ~W~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~G~sprint ~W~ to end animation", 5000, 6); animated[playerid] = 1; return 1; }