12.12.2011, 23:16
(
Последний раз редактировалось xRandomGuy; 13.12.2011 в 01:56.
)
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:
Help please!
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(playerid, params[])
{
new message[128];
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "NOPE!");
new Float:x, Float:y, Float:z;
if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, 0xFFFFFFFFAA, "USAGE: /slap [playerid]");
if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid,COLOR_WHITE, "SERVER: Wrong ID / player has just quit.");
GetPlayerPos(params[0], x, y, z);
SetPlayerPos(params[0], x, y, z+5);
PlayerPlaySound(params[0], 1130, x, y, z+5);
format(message, sizeof(message),""COL_RED"[AdmSlap]: "COL_WHITE"%s was slapped by %s.",GetName(params[0]), GetName(playerid));
SendClientMessageToAll(COLOR_WHITE, message);
return 1;
}