Vip car raimbow 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)
+--- Thread: Vip car raimbow colors ? (
/showthread.php?tid=582665)
Vip car raimbow colors ? -
Toxik - 22.07.2015
Hey guys i was think and think about to make in my DM server if player is VIP his car change colors
but i dont know how to Script that
i tryed with timers etc etc and color changing of vehicle but nothing happends
~DELETED MY CODES FROM SCRIPT~
all i can gave you is vip System
pawn Код:
if(IsPlayerVipType(playerid,2))
if you can help me thanks
Re: Vip car raimbow colors ? -
nezo2001 - 22.07.2015
PHP код:
forward ChangeColor(playerid);
PHP код:
SetTimerEx("ChangeColor", YourTime, true, "i", playerid);
PHP код:
public ChangeColor(playerid)
{
new rand1 = random(255);
new rand2 = random(255);
ChangeVehicleColor(GetPlayerVehicleID(playerid),rand1,rand2);
return 1;
}
Re: Vip car raimbow colors ? -
TenTen - 22.07.2015
Quote:
Originally Posted by nezo2001
PHP код:
forward ChangeColor(playerid);
PHP код:
SetTimerEx("ChangeColor", YourTime, true, "i", playerid);
PHP код:
public ChangeColor(playerid)
{
new rand1 = random(255);
new rand2 = random(255);
ChangeVehicleColor(GetPlayerVehicleID(playerid),rand1,rand2);
return 1;
}
|
Код:
C:\Users\TRAFEH\Desktop\(0.3z) USF - Server Pack\filterscripts\VIP.pwn(818) : error 021: symbol already defined: "SetTimerEx"
Re: Vip car raimbow colors ? -
nezo2001 - 22.07.2015
Who are you
xD
Anyway show the whole part for this code
Re: Vip car raimbow colors ? -
SoFahim - 22.07.2015
Quote:
(81 : error 021: symbol already defined: "SetTimerEx"
|
Try with delete the 818 line
Re: Vip car raimbow colors ? -
nezo2001 - 22.07.2015
If he deleted the line the timer won't work -_-
Re: Vip car raimbow colors ? -
Igarashi - 22.07.2015
So when VIP is in any vehicle color of his car will change every one second.
Код:
SetTimerEx("ChangeVehicleColor", 1000, false, "i", playerid); // 1000 ( 1 second )
Код:
forward ChangeVehicleColor(playerid);
public ChangeVehicleColor(playerid)
{
new rand1 = random(255); // color one
new rand2 = random(255); //color two
ChangeVehicleColor(GetPlayerVehicleID(playerid),rand1,rand2);
return 1;
}
Re: Vip car raimbow colors ? -
Toxik - 22.07.2015
Quote:
Originally Posted by Igarashi
So when VIP is in any vehicle color of his car will change every one second.
Код:
SetTimerEx("ChangeVehicleColor", 1000, false, "i", playerid); // 1000 ( 1 second )
Код:
forward ChangeVehicleColor(playerid);
public ChangeVehicleColor(playerid)
{
new rand1 = random(255); // color one
new rand2 = random(255); //color two
ChangeVehicleColor(GetPlayerVehicleID(playerid),rand1,rand2);
return 1;
}
|
well thanks i figured out by my self some codes
and your code crashes my pawn ;(