Jump to content
  • 0

Bug comanda /tod


BossDeBoss

Question

Salut am si eu comanda:

[pawn]

if(strcmp(cmd, "/tod", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "{3C9DF6}Utilizare Comanda{FFFFFF}: /tod [timeofday] (0-23)");

return 1;

}

new hour;

hour = strval(tmp);

if (PlayerInfo[playerid][pAdmin] >= 1337)

{

            SetWorldTime(hour);

format(string, sizeof(string), " {FFFFFF}^ {24BBFF}x {F65205}RPG {FFFFFF}^ Ora a fost setata la [%d]", hour);

BroadCast(COLOR_GRAD1, string);

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  {FFFFFF}^ {24BBFF}x{F65205}RPG {FFFFFF}^ Ne pare rau dar nu aveti permisiunea sa folositi aceasta comanda !");

}

}

return 1;

}[/pawn]

Si nu merge . Oare ce are?? :undecided:

Sunt scriper in devenire.Si nu am idee ce ar avea.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.