17.03.2009, 22:41
How to i change the default Time of day?? So I start with 8 instead of 1
SendRconCommand("worldtime [time u liek]");
SetTimer("time", 60000, 0);
public time()
{
SetWorldTime(12);
SetTimer("time2", 60000, 0);
return 1;
}
Add this to OnPlayerCommandText, any error/Warnings post them and ill post what you need. if(strcmp(cmd, "/tod", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /tod [timeofday] (0-23)"); return 1; } new hour; hour = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 20) { SetWorldTime(hour); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not an administrator/correct level."); } } return 1; }
GetWeaponName(reason, deathreason, 20); format(dmessage, sizeof(dmessage), "You Got Pwned"); if (strlen(deathreason) == 0) { format(deathreason, sizeof(deathreason), "Fists"); } if (reason == 41) { format(deathreason, sizeof(deathreason), "Pepper Spray"); } if (gPlayerCheckpointStatus[playerid] == CHECKPOINT_DROPOFF) { if (gdebug){print("DEBUG test6");} DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; new check; check = gPlayerCheckpointStatus[playerid]; if (gdebug){printf("DEBUG check %d" ,check);} OnPlayerDropCashBox(playerid); } if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11) { DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; LapCount[playerid] = 0; } /* if((PlayerInfo[playerid][pPhousekey]+1 != gLastCar[playerid] && gLastCar[playerid] != 0) || HireCar[playerid] != gLastCar[playerid] && gLastCar[playerid] != 0) { printf("DEBUG PlayerInfo[playerid][pPhousekey](%d) gLastCar[playerid]-1(%d) HireCar[playerid](%d)", PlayerInfo[playerid][pPhousekey],gLastCar[playerid]-1,HireCar[playerid]); UnLockCar(gLastCar[playerid]); gCarLock[gLastCar[playerid]] = 0; gLastDriver[gLastCar[playerid]] = 300; gLastCar[playerid] = 0; } */ new caller = Mobile[playerid]; if(caller != 255) { if(caller < 255) { SendClientMessage(caller, COLOR_GRAD2, " The line just went dead...."); CellTime[caller] = 0; CellTime[playerid] = 0; Mobile[caller] = 255; } Mobile[playerid] = 255; CellTime[playerid] = 0; } ClearCrime(playerid); if (killerid == INVALID_PLAYER_ID) { for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && gTeam[i] != gTeam[playerid] && CrimInRange(20.0, playerid,i) && GetPlayerState(i) != 2) { killerid = i; format(deathreason, sizeof(deathreason), "Intimidation"); } } } if (killerid == INVALID_PLAYER_ID) { if ((gTeam[playerid]) == 0){return 1;}
Originally Posted by Seif_
Quote:
|