/ar command
#6

i use it this way,very short and easy to modify for any commands like heal/rob/rape..etc;

Код:
	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;
	}
You can make setplayerpos(i,x,y,z); if you want the arrested player to go to a police station
Reply


Messages In This Thread
/ar command - by jamesbond007 - 06.03.2010, 12:49
Re: /ar command - by cozza123456 - 06.03.2010, 13:31
Re: /ar command - by aircombat - 06.03.2010, 13:37
Re: /ar command - by jamesbond007 - 06.03.2010, 14:01
Re: /ar command - by aircombat - 06.03.2010, 14:10
Re: /ar command - by boelie - 06.03.2010, 14:20
Re: /ar command - by jamesbond007 - 06.03.2010, 14:23
Re: /ar command - by boelie - 06.03.2010, 14:25
Re: /ar command - by jamesbond007 - 06.03.2010, 14:27
Re: /ar command - by boelie - 06.03.2010, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)