need help with Player Colors - 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: need help with Player Colors (
/showthread.php?tid=114494)
need help with Player Colors -
rs2fun111 - 19.12.2009
How i can make this code for giving player color by every car ?
Код:
public OnPlayerStateChange(playerid, newstate, oldstate){
if(newstate==PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520)
{
SetPlayerColor(playerid,COLOR_GREEN);
}
}
return 1;
}
Re: need help with Player Colors -
rs2fun111 - 19.12.2009
can someone help plz?
Re: need help with Player Colors -
Naruto4 - 19.12.2009
ehh ? can you exlain it little better
when you enter a green car then the map goes green too or
DONT SPAM
you posted it 5 mins ago !!
Re: need help with Player Colors -
Jefff - 19.12.2009
Код:
public OnPlayerStateChange(playerid, newstate, oldstate){
if(newstate==PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520)
{
SetPlayerColor(playerid,COLOR_GREEN);
}
}
return 1;
}
Re: need help with Player Colors -
rs2fun111 - 19.12.2009
thank you very much