31.07.2011, 05:01
Add a return 1; to the end of it and make the else statement...
pawn Code:
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
{
if(sscanf(params, "is[128]", playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /slap [playerid]"); // Checking is the player just typed /slap now e.g. /slap 0 10
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "Player not connected");
//else
format(string, sizeof(string), "%s has slapped %s",pName,vName); // Defining string
SendClientMessageToAll(COLOR_ORANGE, string);
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid,x,y,z+15);
//here return 1;
}