Problem with this
#2

The problem is that you do not remove the player from the vehicle in any way as you are returning return an error message and thus making everything that comes after it not execute. This is why it is important for your code to have a logical flow.

pawn Код:
if(GetPVarInt(playerid,"VWTIMER")>GetTickCount()) {
    SendClientMessage(playerid,0xFF0000FF,"You must wait 5 seconds before entering in a vehicle again.");
    SetPVarInt(playerid,"VWTIMER",GetTickCount()+5000);
    RemovePlayerFromVehicle(playerid);
    return 1;
}
Reply


Messages In This Thread
Problem with this - by Face9000 - 13.01.2012, 10:19
Re: Problem with this - by JamesC - 13.01.2012, 10:37
Re: Problem with this - by Face9000 - 13.01.2012, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)