01.04.2009, 11:31
My /slap command is bugged, when i type /slap it always slap myself.
Doesn't matter who type /slap (only admins ofc) will be slapping themselves not others players.
Here's the command:
Doesn't matter who type /slap (only admins ofc) will be slapping themselves not others players.
Here's the command:
pawn Код:
if(strcmp(cmd, "/slap", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
PlayerPlaySound(playerid, 1130, slx, sly, slz+5);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You are not an administrator");
}
}
return 1;
}