18.01.2015, 22:56
I got this so far:
Now my problem, I don't know how to check if new vehicleid matches the old one on OnPlayerStateChange, any ideas?
Basically I want to terminate a mission etc if vehicle ids arent matching.
pawn Код:
new lastvehicle[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
lastvehicle[playerid] = GetPlayerVehicleID(playerid);
}
return 1;
}
Basically I want to terminate a mission etc if vehicle ids arent matching.