Objects End:
pawn Код:
//printf("Pickups Max = 100, Current Pickups = %d",pickups);
////printf("DEBUG: Rando Cars %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,",carselect[0],carselect[1],carselect[2],carselect[3],carselect[4],carselect[5],carselect[6],carselect[7],carselect[8],carselect[9],carselect[10],carselect[11],carselect[12],carselect[13],carselect[14]);
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
}
SetTimer("House", 1000, 1);
synctimer = SetTimer("SyncUp", 60000, 1);
unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
celltimer = SetTimer("CellPhoneTimer", 1001, 1);
SetTimer("RingToner", 500, 0);
SetTimer("CustomPickups", 1002, 1);
SetTimer("Health", 1000, 0);
//SetTimer("IdleKick", idletime, 1);
SetTimer("AntiTeleport", 1003, 1);
SetTimer("CheckGas", 35000, 1);
SetTimer("OtherTimer", 1004, 1);
//accountstimer = SetTimer("SaveAccount", 1000, 1); //15 mins every account saved
tutorialtimer = SetTimer("TutorialLoop", 1000, 1);
SetTimer("Production", 300000, 1); //5 mins (300000)
SetTimer("Plantation", 60000, 1);
//SetTimer("Carz", 1000, 1);
for (new il = 0; il < MAX_VEHICLES; il++)
{
GetVehiclePos(il, VehicleInfo[il][CarSpawnX], VehicleInfo[il][CarSpawnY], VehicleInfo[il][CarSpawnZ]);
}
return 1;
}
Before Objects:
pawn Код:
for(new i = 0; i < sizeof(DropInfo); i++) {
if(DropInfo[i][dx] != 0.0 && DropInfo[i][dy] != 0.0 && DropInfo[i][dz] != 0.0) {
if(DropInfo[i][dType] == 1) {
if (DropInfo[i][dAmount][0] > 1 || DropInfo[i][dAmount][0] < 35) {
DropObject[i] = CreateDynamicObject(gh_GetObjectID(DropInfo[i][dAmount][0]), DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 80.0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);
}
}
else if(DropInfo[i][dType] == 2) {
DropObject[i] = CreateDynamicObject(2060, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);
}
else if(DropInfo[i][dType] == 3) {
DropObject[i] = CreateDynamicObject(1575, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);
}
else if(DropInfo[i][dType] == 4) {
DropObject[i] = CreateDynamicObject(1212, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);
}
}
}
for(new i = 0; i < sizeof(FurnInfo); i++) {
if(FurnInfo[i][fTaken] == 1) {
if(FurnInfo[i][fWorld] == 0) {
HouseInfo[FurnInfo[i][fTakenID]][hOTaken]--;
FurnInfo[i][fx] = 0.0;
FurnInfo[i][fy] = 0.0;
FurnInfo[i][fz] = 0.0;
FurnInfo[i][fTakenID] = 255;
FurnInfo[i][fTaken] = 0;
}
else {
new objectid = FurnInfo[i][fType];
if(objectid == 14880 || objectid == 14866 || objectid == 14806
|| objectid == 14446 || objectid == 14391 || objectid == 2738
|| objectid == 2648 || objectid == 2332 || objectid == 1481
|| objectid == 1896 || objectid == 1824 || objectid == 1805
|| objectid == 1281 || objectid == 14651 || objectid == 1280) {
FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz], 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
}
else if(objectid == 1985) {
FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz]+1, 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
}
else {
FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz]-1, 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
}
}
}
}
//============================================================================//
for(new h = 0; h < sizeof(Jobs); h++) {
Create3DTextLabel("[Job]",0xFFFFFFFF,Jobs[h][0], Jobs[h][1], Jobs[h][2]+0.75,20.0,0,1);
CreatePickup(1239, 1, Jobs[h][0],Jobs[h][1],Jobs[h][2]);
}
for(new h = 0; h < sizeof(Dealerships); h++) {
Create3DTextLabel("[Dealership]",0xFFFFFFFF,Dealerships[h][0], Dealerships[h][1], Dealerships[h][2]+0.75,20.0,0,1);
CreatePickup(1239, 1, Dealerships[h][0],Dealerships[h][1],Dealerships[h][2]);
}
for(new h = 0; h < sizeof(DriveThru); h++) {
Create3DTextLabel("[DriveThru]",0xFFFFFFFF,DriveThru[h][0], DriveThru[h][1], DriveThru[h][2]+0.75,20.0,0,1);
CreatePickup(1239, 1, DriveThru[h][0],DriveThru[h][1],DriveThru[h][2]);
}
for(new h = 0; h < sizeof(EnterSpray); h++) {
CreatePickup(1239, 1, EnterSpray[h][0],EnterSpray[h][1],EnterSpray[h][2]);
}
for(new h = 0; h < sizeof(BenchPress); h++) {
CreatePickup(1239, 1, BenchPress[h][0],BenchPress[h][1],BenchPress[h][2]);
}