Vip car raimbow colors ?
#1

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
Reply
#2

PHP код:
forward ChangeColor(playerid); 
PHP код:
SetTimerEx("ChangeColor"YourTimetrue"i"playerid); 
PHP код:
public ChangeColor(playerid)
{
    new 
rand1 random(255);
    new 
rand2 random(255);
    
ChangeVehicleColor(GetPlayerVehicleID(playerid),rand1,rand2);
    return 
1;

Reply
#3

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
PHP код:
forward ChangeColor(playerid); 
PHP код:
SetTimerEx("ChangeColor"YourTimetrue"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"
Reply
#4

Who are you xD
Anyway show the whole part for this code
Reply
#5

Quote:

(81 : error 021: symbol already defined: "SetTimerEx"

Try with delete the 818 line
Reply
#6

If he deleted the line the timer won't work -_-
Reply
#7

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;
}
Reply
#8

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 ;(
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)