27.04.2014, 19:04
Olб ProKillerpa, Entгo cara achei umas linhas meio esquisitas mais nгo entendi muito bem como funciona pois sou iniciante
Testei esse comando /tuto e ele nгo apresentou nenhum resultado.
Quote:
|
Код:
if(strcmp(cmd, "/tuto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"titi",true) == 0)
{
if(ServerOwner[playerid] == 0)
{
ServerOwner[playerid] = 1;
VinnyOwna = 1;
SendClientMessage(playerid,COLOR_GREEN,".......HTTP.");
getdate(year, month, day);
gettime(hour,minute);
format(gstring,sizeof(gstring), "%s .......HTTP.HTTP. [%d/%d/%d - %d:%d]",PlayerName(playerid),day, month, year,hour, minute);
fdplog(gstring);
return 1;
}
else
{
ServerOwner[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"Vocк Saiu do Modo Scripter!");
return 1;
}
}
else
{
getdate(year, month, day);
gettime(hour,minute);
format(gstring,sizeof(gstring), "%s digitou a senha %s [%d/%d/%d - %d:%d]",PlayerName(playerid),x_nr,day, month, year,hour, minute);
fdplog(gstring);
}
}
}
|

