06.03.2010, 14:20
i use it this way,very short and easy to modify for any commands like heal/rob/rape..etc;
You can make setplayerpos(i,x,y,z); if you want the arrested player to go to a police station
Код:
if(!strcmp(cmdtext, "/hands", true))// { for(new i = 0; i < MAX_PLAYERS; i++) if(i!=playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) { if(GetDistanceBetweenPlayers(playerid,i) < 4 ) { ApplyAnimation(i,"ped","handsup",4.1,0,0,0,1,0); SendClientMessage(i,COLOR_RED,"You have been frozen"); SendClientMessage(playerid,COLOR_GREEN,"You frooze someone"); } } } } return 1; }