08.01.2010, 16:19
sorry for duble post but u made a mistake 1 skin in your gamemode = 1 class id so u cant give class id 64 or waht ever if u have ther 5 skins ...
so in ur code is ''classid'' first put under OnGameModeInit ... AddPlayerClass(................................... ); ....
let me explain
if u have like this
so in your example should look like this,FOR EXAMPLE I GIVE U THIS CODE...
so than u make
i explain u all what u need to know for more info look at wiki-samp and u will learn much much and much
so in ur code is ''classid'' first put under OnGameModeInit ... AddPlayerClass(................................... ); ....
let me explain
if u have like this
Code:
public OnGameModeInit() { AddPlayerClass(SKINID,FLOAT X,FLOAT Y,FLOAT Z,FACING ANGLE,weapon 1,ammo for weapon 1,weapon 2,ammo for weapon 2,weapon 3,ammo for weapon 3); // CLASSID 0 return 1; }
Code:
public OnGameModeInit() { //HOOKERS CLASSES AddPlayerClass(64,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 0 AddPlayerClass(63,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 1 AddPlayerClass(75,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 2 AddPlayerClass(78,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 3 //than make some classes for team BUM ... like this //BUM CLASSES AddPlayerClass(105,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 4 AddPlayerClass(106,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 5 AddPlayerClass(107,1494.6130,-878.9011,59.7693,23.5744,0,0,0,0,0,0);// SO THIS IS CLASS ID 6 return 1; }
Code:
SetPlayerTeamFromClass(playerid, classid) { if (classid == 0, 1, 2, 3) { gTeam[playerid] = TEAM_HOOKER; } if (classid == 4,5,6) { gTeam[playerid] = TEAM_BUM; } }