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...