28.03.2014, 17:01
It's not due to /slap command, she works on other players, just on ID 2, LIKE EVERY OTHER COMMAND, it doesn't work. /slap command was just example...
Quote:
COMMANDlap(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new toplayerid, Floathealth, Floatlx, Floatly, Floatlz; if (!sscanf(params, "u", toplayerid)) { if(toplayerid != INVALID_PLAYER_ID && Bit1_Get(g_PlayerLogged, toplayerid) != 0) { GetPlayerHealth(toplayerid, shealth); SetPlayerHealth(toplayerid, shealth-5); GetPlayerPos(toplayerid, slx, sly, slz); SetPlayerPosEx(toplayerid, slx, sly, slz+5); PlayerPlaySound(toplayerid, 1130, slx, sly, slz+5); } else SendClientMessage(playerid, COLOR_RED, "That player is not online!"); } else SendClientMessage(playerid, COLOR_RED, "/slap <playerid>"); } else SendClientMessage(playerid, COLOR_RED, "You cant use this!"); return 1; } |