Diffrent class for diffrent team is not working help +Rep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Diffrent class for diffrent team is not working help +Rep (
/showthread.php?tid=540839)
Diffrent class for diffrent team is not working help +Rep -
Ryz - 07.10.2014
i have made new classes for new team but
cods not working
when player change class he show CLASS_DIALOG2.
pawn Код:
if(Switchclass[playerid] == 1)
{
SendClientMessage(playerid, -1,"Please select your class");
FirstSpawn[playerid] = 0;
if(Team[playerid]==TEAM_AFGHANISTAN)
{
ShowPlayerDialog(playerid, CLASS_DIALOG2, DIALOG_STYLE_LIST,"Class Selection",""ccolor"Terrorist - "ccolor2"Rank 0\n"ccolor"Sucider - "ccolor2"Rank 1\n"ccolor"Bomber - "ccolor2"Rank 4\n"ccolor"Weapon master - "ccolor2"Rank 3","Select","");
}
else
{
ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Class Selection",""ccolor"Assault - "ccolor2"Rank 0\n"ccolor"Sniper - "ccolor2"Rank 1\n"ccolor"Pilot - "ccolor2"Rank 4\n"ccolor"Engineer - "ccolor2"Rank 3\n"ccolor"Support - "ccolor2"Rank 2\n"ccolor"Scout - "ccolor2"Rank 3\n"ccolor"Spy - "ccolor2"Rank 6\n"ccolor"Jet-Pilot - "ccolor2"Rank 5\n"ccolor"Donor - "ccolor2"For Donors only","Select","");
}
}
Re: Diffrent class for diffrent team is not working help +Rep -
Ryz - 08.10.2014
anyone?
Re: Diffrent class for diffrent team is not working help +Rep -
(SF)Noobanatior - 08.10.2014
where do you change the Team[playerid] for the player?
Re: Diffrent class for diffrent team is not working help +Rep -
Ryz - 08.10.2014
Quote:
Originally Posted by (SF)Noobanatior
where do you change the Team[playerid] for the player?
|
i dont understanded mate
Re: Diffrent class for diffrent team is not working help +Rep -
(SF)Noobanatior - 08.10.2014
when the player selects the class, how do you set the var, would be something like;
Код:
Team[playerid]=TEAM_AFGHANISTAN; // or
Team[playerid]=TEAM_ASSULT;
so you can check it with your "if" statment, here;
Код:
if(Team[playerid]==TEAM_AFGHANISTAN)
and somewhere at the top of your script it should proberly say
Код:
#define TEAM_AFGHANISTAN 1
#define TEAM_ASSULT 0
and there should be at the top of the sctipt too
got all that in your code?
Re: Diffrent class for diffrent team is not working help +Rep -
Ryz - 08.10.2014
ohh god i forgeted that i have
not
thanks for Attention!