SA-MP Forums Archive
Need me one code. - 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: Need me one code. (/showthread.php?tid=317795)



Need me one code. - dundolina - 12.02.2012

I need a code that sets the colors of the bands. From start to run as a player after registration, puts it in white, and I need green, as the Grove.


Re: Need me one code. - John Rockie - 12.02.2012

Can you describe more.
Maybe SetPlayerColor helps..


Re: Need me one code. - Mean - 12.02.2012

So, you want to set the player color after he registers?
Use SetPlayerColor.

EDIT: late.


Re: Need me one code. - dundolina - 12.02.2012

Where should I put the code to be triggered after spawn.


Re: Need me one code. - Mark™ - 12.02.2012

Quote:
Originally Posted by dundolina
Посмотреть сообщение
Where should I put the code to be triggered after spawn.
under
pawn Код:
public OnPlayerSpawn(playerid)
{
    //your code
    return 1;
}



Re: Need me one code. - dundolina - 12.02.2012

But this for all..Need me for grove gang.


Re: Need me one code. - dundolina - 12.02.2012

Help?


Re: Need me one code. - Madd Kat - 12.02.2012

Please dont bump your thread so fast, everyone would like there questions answered,
but if you keep bumping then you make it so others question is pushed to the back of the line and never get answered, Like some of mine...

I believe you can only bump every 48 hours.



now.
well first you need to define which class is actually grove.

so say you add grove as the first 3 class's then you know
class 0 class 1 class 2 are all grove street, and check against them on player class selection or something
and set there color as described above.


Re: Need me one code. - dundolina - 12.02.2012

I don't understand.Where I add this class?


Re: Need me one code. - Madd Kat - 12.02.2012

are you using AddPlayerClass anywhere in your code?