22.04.2012, 13:02
Quote:
pawn Код:
|
QUOTE (Previous)
pawn Код:
new RankA[80]; //at the top of script
//at the stock function
switch(PlayerData[playerid][AdminLevel])
{
case 1: RankA = "Trial Admin";
}
Example:
pawn Код:
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, 128, "%s: %s(%d) has kicked %s(%d)", AdminLevel(playerid), pName, playerid, targetname, targetid);
SendClientMessageToAll(-1, string);
pName - AdminName
playerid - your id
targetname - the one was being kicked (not mention in code)
targetid - the id of player who being kicked (not mention in code)
targetname and targetid is not in code so if you copy/paste it you will get a error