11.05.2013, 11:31
Let's say community owner is level 7.
and the admin var is pAdmin[MAX_PLAYERS], if you have an enum or something use enumname[playerid][pAdmin]
and the admin var is pAdmin[MAX_PLAYERS], if you have an enum or something use enumname[playerid][pAdmin]
pawn Код:
public OnPlayerConnect(playerid)
{
if(pAdmin[playerid] == 7)
{
new string[218];
format(string, sizeof(string), "Community owner %s joined the server.", GetName(playerid));
SendClientMessageToAll(-1, string);
}
return 1;
}
//add this anywhere in your script
stock GetName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}