Please help me Adding Player 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: Please help me Adding Player Class (
/showthread.php?tid=528718)
Please help me Adding Player Class -
rashidkhoso37 - 29.07.2014
Hi i want to add this system in my server when player choose army skin it will show a error which says that you need 500 score then you can use this class so when player get 500 score then they able to choose army class please help he to adding this plzzz plzzz tell me codes of this script in my server army team class name is
else if(gTeam[playerid] == ARMY)
so how can i make it
Re: Please help me Adding Player Class -
amirab - 29.07.2014
you should use OnPlayerRequestSpawn

good luck
Re: Please help me Adding Player Class -
rashidkhoso37 - 29.07.2014
thats not my question answer
Re: Please help me Adding Player Class -
Beckett - 29.07.2014
pawn Код:
if(gTeam[playerid] == ARMY)
{
if(GetPlayerScore(playerid) >= 500)
{
// Spawn.
}
else
{
SendClientMessage(playerid,-1,"You need to have 500 score to use this class.");
}
}
// Put this code under OnPlayerRequestSpawn
By the way typing PLZZZZZZZZZZZZZZZZZ 100x time wont make people help you it will make them leave the topic as soon as they could.
Re: Please help me Adding Player Class -
rashidkhoso37 - 29.07.2014
Sir DaniceMcHarley can you help me through team viewer plzzz
Re: Please help me Adding Player Class -
rashidkhoso37 - 30.07.2014
i did it but when i m choosing army skin it is spawning and showing a msg You need to have 500 score to use this class. but i want that the if player dont have 500 score then they cant choose this skin but your code not working