24.11.2009, 15:55
i just made this and its not seeming to work all i get is An Admin has set the time to 24 for all of them and ideas
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { //----------------------------[Night]------------------------------------------- if(strcmp(cmdtext, "/dark", true)==0) { if(IsPlayerAdmin(playerid)) SendClientMessageToAll(COLOR_ORANGE, "An Admin has set the time to 24."); SetWorldTime(1); return 1; } //----------------------------[Rainy]------------------------------------------- if(strcmp(cmdtext, "/rainy", true)==0) { if(IsPlayerAdmin(playerid)) SendClientMessageToAll(COLOR_ORANGE, "An Admin has changed the weather."); SetWeather(8); return 1; } //----------------------------[Sunny]------------------------------------------- if(strcmp(cmdtext, "/sunny", true)==0) { if(IsPlayerAdmin(playerid)) SendClientMessageToAll(COLOR_ORANGE, "An Admin has changed the weather."); SetWeather(0); return 1; }