Team Help
#1

i want to make separate teams for the classes
4 teams of 4
Grove
Ballers
Vagos
Whores

But there not in there right teams


^ See i have ryder in ballers side
he will spawn at grove street but he will be a baller
Ive searched alot and followed many tuts but none seem to help.
can anyone help me? please
Reply
#2

anyone?
Reply
#3

Show me OnPlayerRequestClass and AddPlayerClass the 4 addplayerclass you have.
Reply
#4

AddPlayerClass(107,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(271,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(105,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(106,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0

AddPlayerClass(103,2217.2083,-1179.3130,29.7971,359.3272,1,0,22,150,0,0); // 1
AddPlayerClass(104,2217.2083,-1179.3130,29.7971,359.3272,1,0,22,150,0,0); // 1
AddPlayerClass(28,2217.2083,-1179.3130,29.7971,359.3272,1,0,22,150,0,0); // 1
AddPlayerClass(102,2217.2083,-1179.3130,29.7971,359.3272,1,0,22,150,0,0); // 1

AddPlayerClass(152,2421.8979,-1227.2788,25.0261,160.4637,1,0,22,150,0,0); // 2
AddPlayerClass(178,2421.8979,-1227.2788,25.0261,160.4637,1,0,22,150,0,0); // 2
AddPlayerClass(145,2421.8979,-1227.2788,25.0261,160.4637,1,0,22,150,0,0); // 2
AddPlayerClass(140,2421.8979,-1227.2788,25.0261,160.4637,1,0,22,150,0,0); // 2

AddPlayerClass(114,1753.7407,-1920.7247,13.5720,264.4986,0,0,0,0,0,0); // 3
AddPlayerClass(115,1753.7407,-1920.7247,13.5720,264.4986,0,0,0,0,0,0); // 3
AddPlayerClass(116,1753.7407,-1920.7247,13.5720,264.4986,0,0,0,0,0,0); // 3
AddPlayerClass(175,1753.7407,-1920.7247,13.5720,264.4986,0,0,0,0,0,0); // 3
public OnPlayerRequestClass(playerid, classid)
{
switch ( classid )
{
case 0:
{
GameTextForPlayer( playerid, "~g~GROVE", 300, 3 );
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerFacingAngle(playerid,252.4717);
SetPlayerColor(playerid, 0xB1FB44FF);
SetPlayerTeam( playerid, GROVE );
}

case 1:
{
GameTextForPlayer( playerid, "~p~BALLERS", 300, 3 );
SetPlayerPos(playerid,2216.5764,-1167.7313,25.7266);
SetPlayerCameraPos(playerid,2216.5063,-1160.8719,25.7266);
SetPlayerCameraLookAt(playerid,2216.5764,-1167.7313,25.7266);
SetPlayerFacingAngle(playerid,1.5070);
SetPlayerColor(playerid, 0x9F00F6AA);
SetPlayerTeam( playerid, BALLERS );
}
case 2:
{
GameTextForPlayer( playerid, "~w~WHORES", 300, 3 );
SetPlayerPos(playerid,2421.8979,-1227.2788,25.0261);
SetPlayerCameraPos(playerid,2420.9324,-1236.2363,24.3685);
SetPlayerCameraLookAt(playerid,2421.8979,-1227.2788,25.0261);
SetPlayerFacingAngle(playerid,160.4637);
SetPlayerColor(playerid, 0xFF0080FF);
SetPlayerTeam( playerid, WHORES );
}
case 3:
{
GameTextForPlayer( playerid, "~b~VAGOS", 300, 3 );
SetPlayerPos(playerid,1753.7407,-1920.7247,13.5720);
SetPlayerCameraPos(playerid,1766.4438,-1920.2628,13.5646);
SetPlayerCameraLookAt(playerid,1753.7407,-1920.7247,13.5720);
SetPlayerFacingAngle(playerid,264.4986);
SetPlayerColor(playerid, 0x0000FFAA);
SetPlayerTeam( playerid, VAGOS );
}
}
return 1;
}
Reply
#5

thats what i have
Reply
#6

O.o.
Reply
#7

In the switch statement, you're only creating these skins: AddPlayerClass(107,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(271,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(105,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0
AddPlayerClass(106,2497.1973,-1670.4236,13.3359,74.4676,1,0,22,150,0,0); // 0

Case 0: = skin 107
case 1: = skin 271
case 2: = skins 105
case 3: = skin106

And that's only 1 team, that's the team_grove..

therefore keep going with the cases untill case 15 or 16 not sure..
Reply
#8

hey man thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)