10.12.2011, 00:36
pawn Код:
if (strcmp(cmdtext, "/dia", true) == 0)
{
GameTextForPlayer(playerid, "~w~ Mudou para ~r~Dia", 1000, 1);
SendClientMessage(playerid, COLOR_WHITE, "Vocк mudou o tempo para Dia!");
SetPlayerTime(playerid, 12, 0);
return 1;
}
if (strcmp(cmdtext, "/noite", true) == 0)
{
GameTextForPlayer(playerid, "~w~ Mudou para ~r~Noite", 1000, 1);
SendClientMessage(playerid, COLOR_WHITE, "Vocк mudou o tempo para Noite!");
SetPlayerTime(playerid, 0, 0);
return 1;
}
if (strcmp(cmdtext, "/tarde", true) == 0)
{
GameTextForPlayer(playerid, "~w~ Mudou para ~r~Tarde", 1000, 1);
SendClientMessage(playerid, COLOR_YELLOW, "Vocк mudou o tempo para Tarde!");
SetPlayerTime(playerid, 6, 0);
return 1;
}