AddPlayerClass issue...
#1

Hi,
Alright,
I have four player classes as below:
Код:
//team1
	AddPlayerClass(217, 365.24, 2535.50, 16.67, 0, 30, 1000, 27, 500, 37, 5); 
	AddPlayerClass(191, 365.24, 2535.50, 16.67, 0, 30, 1000, 27, 500, 37, 5); 
//team2
	AddPlayerClass(287, 1481.87, -2590.15, 13.55, 269.1425, 29, 900, 31, 700, 16, 5);
       AddPlayerClass(211, 1479.48, -2590.15, 13.55, 269.1425, 29, 900, 31, 700, 16, 5);
Now the problem is that team 1 get's the weapons I set above. But, team2 get's the weapons of both the teams

Need Help,

EDIT: i'll try that [zdm]jumbo. By the way, I disarmed myself and then it worked perfect. Only when a player joins in he has this problem if he is team 2.Once i disarm him and he selects team 2 again, the problem is gone!
Reply
#2

Код:
	if (gTeam[playerid] == 1)
	{
		GivePlayerweapon....
	}
	else if (gTeam[playerid] == 2)
	{
		GivePlayerweapon....
	}
}
use this under on player spawn no?
Reply
#3

I tried that jumbo, now team 1 get's all weapons?!
UnderOnPlayerSpawn()
Код:
switch (gPlayerClass[playerid])
		{

	  	case 0, 1:
   		{
				GivePlayerWeapon(playerid,30,500);
				GivePlayerWeapon(playerid,27,400);
				GivePlayerWeapon(playerid,37,5);

			}
			case 2, 3:
    	{
    	GivePlayerWeapon(playerid,29,500);
			GivePlayerWeapon(playerid,31,400);
			GivePlayerWeapon(playerid,16,5);
	
      	}
 		}
		return 1;
Reply
#4

MMMMMMMM in my server work i try o.o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)