05.03.2012, 12:11
pawn Код:
CMD:setname(playerid, params[]) {
new
szUser,
szNewName[MAX_PLAYER_NAME]
;
if(PlayerInfo[playerid][Admin] >= 3) {
if(!sscanf(params, "us[24]", szUser, szNewName)) {
if(!IsPlayerConnected(szUser)) return SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
return SetPlayerName(szUser, pName);
}
else return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setname [playerid/partofname] [newname]");
}
else return SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
}