How to make multiple skins go to 1 class?? - 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: How to make multiple skins go to 1 class?? (
/showthread.php?tid=405522)
How to make multiple skins go to 1 class?? -
megamind2067 - 06.01.2013
as the title says thanks
Re: How to make multiple skins go to 1 class?? -
ancezas - 06.01.2013
pawn Код:
AddPlayerClass ( 129,996.3296,507.1225,433.6688,263.4365,30,1000,27,1000,33,1000 ) ; // Terrorist SPAWN
AddPlayerClass ( 196,996.3296,507.1225,433.6688,263.4365,31,1000,27,1000,34,1000 ) ; // Terrorist SPAWN
AddPlayerClass ( 130,795.7817,500.7301,433.4001,92.6594,30,1000,27,1000,33,1000 ) ; // Army SPAWN
AddPlayerClass ( 199,795.7817,500.7301,433.4001,92.6594,31,1000,27,1000,34,1000 ) ; // Army SPAWN
pawn Код:
if ( classid == 1 )
{
GameTextForPlayer(playerid,"~b~Melynos",1000,5);
gTeam[playerid] = TEAM_Army;
}
if ( classid == 0 )
{
GameTextForPlayer(playerid,"~b~Melynos",1000,5);
gTeam[playerid] = TEAM_Army;
}
if ( classid == 2 )
{
GameTextForPlayer(playerid,"~g~Zalios",1000,5);
gTeam[playerid] = TEAM_Terrorist;
}
if ( classid == 3 )
{
GameTextForPlayer(playerid,"~g~Zalios",1000,5);
gTeam[playerid] = TEAM_Terrorist;
}
Re: How to make multiple skins go to 1 class?? -
megamind2067 - 06.01.2013
no not like that. by the way I use gteam aswell. what i want is for ONE class to have multiple skins
Re: How to make multiple skins go to 1 class?? -
hydravink - 07.01.2013
That is how you do it.
pawn Код:
if(classid = 0 || classid = 2)
{
gTeam[playerid] == TEAM_WHATEVER;
}
Dont forget, CLASSID IS NOT SKIN ID!
pawn Код:
AddPlayerClass(75, whatever); //this will be classid 0 if its the first
AddPlayerClass(23, whatever); //this will be classid 1
AddPlayerClass(1, whatever); //2