AddPlayerClassEx problems...
#1

Hi there all
Im having problems, with the following section of my gamemode, it compiles, however...

It sets all data up in the OnPlayerRequestClass section, it sets the interiors, positions, facing angle (everything) in there perfectly. But it only allows me to select CJ (who as you can see below, isnt even in the list) and wont allow me to spawn a player. I dont know whats up with it

The code below is my "problem" area.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnGameModeInit()
{
    // Lets turn off a few things first :)
    EnableStuntBonusForAll(0);

    SetGameModeText("Trucking World v1.0");

    //TEMPLATE: AddPlayerClassEx(teamid, modelid, spawn_x, spawn_y, spawn_z, z_angle, 0, 0, 0, 0, 0, 0);
    // Player Class ID 1 == Truckers
    AddPlayerClassEx(1, 128, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 131, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 132, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 133, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 161, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 162, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 201, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClassEx(1, 202, -783.7039872943303, 705.7229784321546, 18.0, 269.15, 0, 0, 0, 0, 0, 0);
    // Player Class ID 2 == Assistance
    // ID 50
    // Player Class ID 3 == Police
   
    // Player Class ID 4 == Unemployed
   
    // End Classes
    return 0;
}
Thanks in advance
Ash!
Reply


Messages In This Thread
AddPlayerClassEx problems... - by Ash. - 10.07.2010, 07:46
Re: AddPlayerClassEx problems... - by Ash. - 10.07.2010, 08:12
Re: AddPlayerClassEx problems... - by ViruZZzZ_ChiLLL - 10.07.2010, 08:14
Re: AddPlayerClassEx problems... - by Ash. - 10.07.2010, 08:16
Re: AddPlayerClassEx problems... - by ViruZZzZ_ChiLLL - 10.07.2010, 08:18
Re: AddPlayerClassEx problems... - by Ash. - 10.07.2010, 08:20
Re: AddPlayerClassEx problems... - by ViruZZzZ_ChiLLL - 10.07.2010, 08:25
Re: AddPlayerClassEx problems... - by Ash. - 10.07.2010, 08:26
Re: AddPlayerClassEx problems... - by ViruZZzZ_ChiLLL - 10.07.2010, 08:28
Re: AddPlayerClassEx problems... - by Ash. - 10.07.2010, 08:30

Forum Jump:


Users browsing this thread: 2 Guest(s)