13.06.2012, 10:13
Okay Here's my slapall command
I want to make /slap (id) command ... I don't how to .. Atleast guys can u help me
-.-"
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; }
