Gang Cars Problem
#4

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
You returned the timer after the 'if' statement.
No further code will be executed,like that message.
Also you should could use SetTimerEx,as you got playerid
So you can put it like this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == BallasCar1 || BallasCar2 || BallasCar3 || BallasCar4 || BallasCar5 || BallasCar6)
    {
        if(PlayerInfo[playerid] [pBallas] < 1)
        {
            SendClientMessage(playerid,COLOR_PINK, "Ballas Car");
                SetTimerEx("BallasRFV",2000,false,"i", playerid);//In two seconds after entering the car(pressing F/ENTER),BallasRFW(playerid); will be called
        }
    }
    return 1;
}
forward BallasRFV(playerid);   //Ballas Remove Player From Vehicle
public BallasRFV(playerid)
{
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,COLOR_PINK,"You cannot drive Ballas Cars!");
    return 1;
}
It doesn't work... Its baddest than mine...
Reply


Messages In This Thread
Gang Cars Problem - by dakata994 - 10.12.2013, 11:11
Re: Gang Cars Problem - by Tagathron - 10.12.2013, 11:19
Respuesta: Gang Cars Problem - by ghost556 - 10.12.2013, 11:23
Re: Gang Cars Problem - by dakata994 - 10.12.2013, 11:24
Re: Gang Cars Problem - by dakata994 - 10.12.2013, 11:30
Respuesta: Re: Gang Cars Problem - by ghost556 - 10.12.2013, 11:35
Re: Gang Cars Problem - by dakata994 - 10.12.2013, 11:36
Respuesta: Gang Cars Problem - by ghost556 - 10.12.2013, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)