[Duvida] /EDITARADMIN
#4

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;
}
Fiz sem olhar o seu exemplo... '-'
Reply


Messages In This Thread
[Duvida] /EDITARADMIN - by Junior_Vercetti - 15.04.2010, 22:39
Re: [Duvida] /EDITARADMIN - by (o)Trydon - 15.04.2010, 22:52
Re: [Duvida] /EDITARADMIN - by ipsBruno - 15.04.2010, 22:59
Re: [Duvida] /EDITARADMIN - by Guilherme_Canani - 15.04.2010, 23:02
Re: [Duvida] /EDITARADMIN - by brunogysin - 16.04.2010, 09:30

Forum Jump:


Users browsing this thread: 2 Guest(s)