Slap Command
#6

Okay Here's my slapall command
Code:
dcmd_adslapall(playerid,params[])
{
    #pragma unused params
    new Float:x, Float:y, Float:z;
   	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && (i != playerid))
		{
			PlayerPlaySound(i,1190,0.0,0.0,0.0);
			GetPlayerPos(i,x,y,z);
			SetPlayerPos(i,x,y,z+4);
        }
        new string[128];
   		format(string,sizeof(string),"Adminstrator %s(%d) has slapped all the players.",PlayerName(playerid),playerid);
   		SendClientMessageToAll(playerid,string);
	}
	return 1;
}
I want to make /slap (id) command ... I don't how to .. Atleast guys can u help me -.-"
Reply


Messages In This Thread
Slap Command - by Michael_Cruise - 13.06.2012, 09:44
Re: Slap Command - by JaKe Elite - 13.06.2012, 09:57
Re: Slap Command - by Sanady - 13.06.2012, 09:58
Re: Slap Command - by Vince - 13.06.2012, 10:00
Re: Slap Command - by milanosie - 13.06.2012, 10:04
Re: Slap Command - by Michael_Cruise - 13.06.2012, 10:13
Re: Slap Command - by Michael_Cruise - 13.06.2012, 10:27
Re: Slap Command - by JaKe Elite - 13.06.2012, 10:41
Re: Slap Command - by Nuke547 - 13.06.2012, 10:50
Re: Slap Command - by Michael_Cruise - 13.06.2012, 11:04
Re: Slap Command - by -CaRRoT - 13.06.2012, 11:08
Re: Slap Command - by Nicks - 13.06.2012, 11:12
Re: Slap Command - by jop9888 - 13.06.2012, 11:29
Re: Slap Command - by Michael_Cruise - 13.06.2012, 11:41
Re: Slap Command - by WeCstoR - 09.12.2012, 10:38
Re: Slap Command - by mittukuttan - 22.01.2013, 12:01
Re: Slap Command - by PaulDinam - 22.01.2013, 12:19
AW: Slap Command - by Blackazur - 22.01.2013, 12:25
Re: Slap Command - by Threshold - 22.01.2013, 12:50
Re: Slap Command - by Coffeely - 16.03.2014, 14:42
Re: Slap Command - by iThePunisher - 16.03.2014, 14:57
Re: Slap Command - by Greaper - 16.03.2014, 15:02
Re: Slap Command - by Guest4390857394857 - 16.03.2014, 15:12

Forum Jump:


Users browsing this thread: 5 Guest(s)