[Help]Slap CMD
#1

Hello, I'm using 'zcmd' and 'sscnaf' and I've tried making a slap command.
When I'm compiling the gamemode there's no Error nor Warning, but it keeps giving me the "Stay within the world boundaries" crash when I'm trying to spawn ingame.
Here's the command:
PHP код:
CMD:slap(playeridparams[])
{
new 
message[128];
if(
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"NOPE!");
new 
Float:xFloat:yFloat:z;
if(
sscanf(params"u"params[0])) return SendClientMessage(playerid0xFFFFFFFFAA"USAGE: /slap [playerid]");
if(!
IsPlayerConnected(params[0])) return SendClientMessage(playerid,COLOR_WHITE"SERVER: Wrong ID / player has just quit.");
GetPlayerPos(params[0], xyz);
SetPlayerPos(params[0], xyz+5);
PlayerPlaySound(params[0], 1130xyz+5);
format(messagesizeof(message),""COL_RED"[AdmSlap]: "COL_WHITE"%s was slapped by %s.",GetName(params[0]), GetName(playerid));
SendClientMessageToAll(COLOR_WHITEmessage);
return 
1;

Help please!
Reply


Messages In This Thread
[Help]Slap CMD - by xRandomGuy - 12.12.2011, 23:16
Re: [Help]Slap CMD - by Storm203 - 13.12.2011, 00:16
Re: [Help]Slap CMD - by [HiC]TheKiller - 13.12.2011, 00:57
Re: [Help]Slap CMD - by grand.Theft.Otto - 13.12.2011, 01:00
Re: [Help]Slap CMD - by xRandomGuy - 13.12.2011, 01:51
Re: [Help]Slap CMD - by SomebodyAndMe - 13.12.2011, 05:28
Re: [Help]Slap CMD - by suhrab_mujeeb - 13.12.2011, 07:13
Re: [Help]Slap CMD - by SomebodyAndMe - 13.12.2011, 07:34
Re: [Help]Slap CMD - by shitbird - 13.12.2011, 10:07
Re: [Help]Slap CMD - by grand.Theft.Otto - 13.12.2011, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)