10.09.2012, 16:52
(
Последний раз редактировалось vitere; 28.05.2013 в 21:44.
)
pra que sesulsitaram essa poha af!
faz a mesma coisa que vc fez e dps entra na pasta config e coloca seu nick lб . se ajudei da um rep + ae ...
|
if(strcmp(cmd, "/viraradmin dono", true) == 0 || strcmp(cmd, "/va dono", true) == 0|| strcmp(cmd, "/viraradm dono", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"dono",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1342;
admhide[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,"|Vocк agora e Administrador de Level 1342!");
getdate(year, month, day);
gettime(hour,minute);
format(gstring, 128, "%s virou um Administrador, pela RCON[%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
fdplog(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
format(gstring, 128, "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
fdplog(gstring);
}
}
}
if(strcmp(cmd, "/viraradmin dono", true) == 0 || strcmp(cmd, "/va dono", true) == 0|| strcmp(cmd, "/viraradm dono", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"dono",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1341;
admhide[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,"|Vocк agora e Administrador de Level 1342!");
getdate(year, month, day);
gettime(hour,minute);
format(gstring, 128, "%s virou um Administrador, pela RCON[%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
fdplog(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
format(gstring, 128, "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
fdplog(gstring);
}
}
}