[Help] AddPlayerClass
#1

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=0i<MAX_HOUSESi++)
    {
        if(
fexist(HousePath(i)))
        {
            
LoadHouse(i);
            
h_Loaded ++;
        }
    }
    
printf("... Houses loaded by JakHouse [%d houses out of %d]"h_LoadedMAX_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 
xx<MAX_VEHICLESx++)
    {
        
SetVehicleNumberPlate(x""green"JaKe");
    }
    for(new 
i=0i<GM_TIMERSi++)
    {
        
KillTimer(timers[i]);
    }
    
timers[0] = SetTimer("Checkpoint"1000*60*4true);
    
timers[1] = SetTimer("Reactions"1000*60*5true);
    
timers[3] = SetTimer("MoneyBag"MB_DELAYtrue);
    
timers[4] = SetTimer("Heartbeat"1000true);
    
timers[5] = SetTimer("Anticheat"2300true);
    
timers[6] = SetTimer("Wait"1000*60*60true);
    
timers[7] = SetTimer("Maths"1000*60*6true);
    
timers[9] = SetTimer("UpdatePlayer"100true);
    
timers[10] = SetTimer("AutoMessage"1000*60*5true);
    
//timers[11] = SetTimer("AccountPp", 100 , true);
    
SetGameModeText("Stunt-DM-Freeroam-MG-RP");
    
SendRconCommand("mapname "VERSION"");
    
SendRconCommand("hostname "S_H"");
    
    for(new 
i=0i<300i++)
    {
        if(
i!=74)
        {
            
AddPlayerClass(i0000000000);
        }
    }
    
    new 
ij;
    for(
0sizeof(gMinigunPickups); ji++)
    {
        
AddStaticPickup(36215gMinigunPickups[i][PickupX], gMinigunPickups[i][PickupY], gMinigunPickups[i][PickupZ], 67);
    }
    for (
0sizeof(gParachutePickups); ji++)
    {
        
AddStaticPickup(37115gParachutePickups[i][PickupX], gParachutePickups[i][PickupY], gParachutePickups[i][PickupZ], 67);
    }
    for (
0sizeof(gMinigunPickups2); ji++)
    {
        
AddStaticPickup(35815,
            
gMinigunPickups2[i][PickupX],
            
gMinigunPickups2[i][PickupY],
            
gMinigunPickups2[i][PickupZ],
            
68);
    }
    for (
0sizeof(gParachutePickups2); ji++)
    {
        
AddStaticPickup(37115,
            
gParachutePickups2[i][PickupX],
            
gParachutePickups2[i][PickupY],
            
gParachutePickups2[i][PickupZ],
            
68);
    }
//     users = db_open("server/data/users/user.db");
    
Tsec0;
    
THrs0;
    
SetTimer("TimeU",60000,true);
    return 
1
Reply
#2

I guess this function is there instead of adding 299 player classes.

pawn Код:
for(new i=0; i<300; i++)
    {
        if(i!=74)
        {
            AddPlayerClass(i, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)