[HELP] Warnings in my script.
#4

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

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;
}
so in your example should look like this,FOR EXAMPLE I GIVE U THIS CODE...

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;
}
so than u make

Code:
SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0, 1, 2, 3)
	{
		gTeam[playerid] = TEAM_HOOKER;
	}
	if (classid == 4,5,6)
	{
		gTeam[playerid] = TEAM_BUM;
	}
}
i explain u all what u need to know for more info look at wiki-samp and u will learn much much and much
Reply


Messages In This Thread
[HELP] Warnings in my script. - by waza75 - 08.01.2010, 16:05
Re: Skins for teams [HELP] - by Lajko1 - 08.01.2010, 16:08
Re: Skins for teams [HELP] - by lameguy - 08.01.2010, 16:17
Re: Skins for teams [HELP] - by Lajko1 - 08.01.2010, 16:19
Re: Skins for teams [HELP] - by waza75 - 08.01.2010, 16:36
Re: Skins for teams [HELP] - by waza75 - 08.01.2010, 16:51
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:37
Re: [HELP] Warnings in my script. - by Joe Staff - 08.01.2010, 17:45
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:48
Re: [HELP] Warnings in my script. - by waza75 - 08.01.2010, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)