19.01.2015, 07:02
Hello , i can't find AddPlayerClass in my GM . will you please help me . There is one but i am in doubt with it .
PHP код:
g_DuelingID1 = -1;
g_DuelingID2 = -1;
for(new i=0; i<MAX_HOUSES; i++)
{
if(fexist(HousePath(i)))
{
LoadHouse(i);
h_Loaded ++;
}
}
printf("... Houses loaded by JakHouse [%d houses out of %d]", h_Loaded, MAX_HOUSES);
#if CHRISTMAS_SPIRIT == true
print("... Merry Christmas and a Happy New Year, 2014 from JaKe's server ...!");
#endif
UsePlayerPedAnims(); //Uses the CJ animations.
getdate(sInfo[opening_date][0], sInfo[opening_date][1], sInfo[opening_date][2]);
gettime(sInfo[opening_date][3], sInfo[opening_date][4], sInfo[opening_date][5]);
Clear_CP();
loaddb();
LoadRec();
loadtd();
//loadobjects();
//loadvehicles();
load_spawn();
load_config();
EnableStuntBonusForAll(0);
ShowNameTags(1);
SetWorldTime(0);
SetWeather(10);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
for(new x; x<MAX_VEHICLES; x++)
{
SetVehicleNumberPlate(x, ""green"JaKe");
}
for(new i=0; i<GM_TIMERS; i++)
{
KillTimer(timers[i]);
}
timers[0] = SetTimer("Checkpoint", 1000*60*4, true);
timers[1] = SetTimer("Reactions", 1000*60*5, true);
timers[3] = SetTimer("MoneyBag", MB_DELAY, true);
timers[4] = SetTimer("Heartbeat", 1000, true);
timers[5] = SetTimer("Anticheat", 2300, true);
timers[6] = SetTimer("Wait", 1000*60*60, true);
timers[7] = SetTimer("Maths", 1000*60*6, true);
timers[9] = SetTimer("UpdatePlayer", 100, true);
timers[10] = SetTimer("AutoMessage", 1000*60*5, true);
//timers[11] = SetTimer("AccountPp", 100 , true);
SetGameModeText("Stunt-DM-Freeroam-MG-RP");
SendRconCommand("mapname "VERSION"");
SendRconCommand("hostname "S_H"");
for(new i=0; i<300; i++)
{
if(i!=74)
{
AddPlayerClass(i, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
}
new i, j;
for(i = 0, j = sizeof(gMinigunPickups); i < j; i++)
{
AddStaticPickup(362, 15, gMinigunPickups[i][PickupX], gMinigunPickups[i][PickupY], gMinigunPickups[i][PickupZ], 67);
}
for (i = 0, j = sizeof(gParachutePickups); i < j; i++)
{
AddStaticPickup(371, 15, gParachutePickups[i][PickupX], gParachutePickups[i][PickupY], gParachutePickups[i][PickupZ], 67);
}
for (i = 0, j = sizeof(gMinigunPickups2); i < j; i++)
{
AddStaticPickup(358, 15,
gMinigunPickups2[i][PickupX],
gMinigunPickups2[i][PickupY],
gMinigunPickups2[i][PickupZ],
68);
}
for (i = 0, j = sizeof(gParachutePickups2); i < j; i++)
{
AddStaticPickup(371, 15,
gParachutePickups2[i][PickupX],
gParachutePickups2[i][PickupY],
gParachutePickups2[i][PickupZ],
68);
}
// users = db_open("server/data/users/user.db");
Tsec= 0;
THrs= 0;
SetTimer("TimeU",60000,true);
return 1;