20.07.2015, 01:54
The Code
Proplem
When I use it , im who got killed , Not the player that i choosed , can anyone help me ?
Quote:
CMD:akill(playerid, params[]) { new str[128]; if(PlayerInfo[playerid][pAdmin] >= 1) { new playerb; if(sscanf(params,"u",playerb)) return SendClientMessage(playerid, COLOR_GREEN, "[USAGE]: /akill [player id]"); if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, COLOR_RED, "[ERROR] Invalid player id."); SetPlayerHealth(playerid,0.0); format(str,sizeof(str), "[NOTIFICATION] Admin %s has used /akill on %s.", Name(playerid), Name(playerb)); SendAdminMessage(COLOR_YELLOW,str); } return 1; } |
Proplem
When I use it , im who got killed , Not the player that i choosed , can anyone help me ?