SA-MP Forums Archive
looking for comands - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: looking for comands (/showthread.php?tid=97387)



looking for comands - andreportugal - 14.09.2009

howdy mates im looking for 2 commands 1st:to change the player nick colour in game (exmpl:/ncolour 14) and 2nd:to change carcolour ingame (exmpl:/carclr 45 234)

if can help me thanks and if you can't thanks anyway



p.s: srry if my english is bad but im portuguese XD


Re: looking for comands - Doppeyy - 14.09.2009

I'm not sure about the car one but player one is:
Код:
SetPlayerColor(playerid,color);
/Artix


Re: looking for comands - andreportugal - 14.09.2009

thx do i put it just like this
Код:
SetPlayerColor(playerid,color);
beause it gave me a error saing undetefied symbol

or do i do like SetPlayerColor(playerid, 0xAA3333AA); (red i think)


Re: looking for comands - AG Adam - 14.09.2009

Hello!
I making the colour one.
Код:
if (strcmp(cmdtext, "/wtf", true)==0)
	{
	SetPlayerColor(playerid,0xffffff00);
  return 1;
	}
Here you are.


Re: looking for comands - andreportugal - 14.09.2009

ok thx i did that now i just need the one to change the carcolour can anyone tell me ??

idnt think
SetPlayerVehicleColour(playerid,colour) will work


Re: looking for comands - Clavius - 14.09.2009

ChangeVehicleColor(vehicleid, color1, color2)
Note that there are color IDs here, look for them on the wiki.


Re: looking for comands - andreportugal - 14.09.2009

thx mate