15.04.2010, 23:02
pawn Код:
if(strcmp(cmd,"/editaradmin",true)==0)
{
new tmp[256];
tmp=strtok(cmdtext, idx);
new string[256];
new admin;
new plid;
plid=strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Use: /editaradmin [id] [level admin]");
return 1;
}
admin=strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COR, "Use: /editaradmin [id] [level admin]");
return 1;
}
if(IsPlayerConnected(plid)==0)
{
SendClientMessage(playerid, COR, "Jogador Offline");
return 1;
}
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(string));
format(string, sizeof(string), " Vocк foi promovido a Administrador - By: %s. ", admin, pName);
//Funзгo para Setar lvl de adm
return 1;
}