20.08.2012, 19:52
pawn Код:
CMD:leveladmin(playerid)
{
if(PlayerInfo[playerid][zAdmin] == 0)
{
SendClientMessage(playerid, -1, "Voce nao й Admin");
}
else if(PlayerInfo[playerid][zAdmin] == 1)
{
SendClientMessage(playerid, -1, "Voce й Admin Level 1");
}
else if(PlayerInfo[playerid][zAdmin] == 2)
{
SendClientMessage(playerid, -1, "Voce й Admin Level 2");
}
else if(PlayerInfo[playerid][zAdmin] == 3)
{
SendClientMessage(playerid, -1, "Voce й Admin Level 3");
}
else if(PlayerInfo[playerid][zAdmin] == 4)
{
SendClientMessage(playerid, -1, "Voce й Admin Level 4");
}
else if(PlayerInfo[playerid][zAdmin] == 5)
{
SendClientMessage(playerid, -1, "Voce й Admin Level 5");
}
return 1;
}
// Caso o PlayerInfo nao seja sua variavel troque pela sua ....