14.04.2019, 01:36
Here is the code:
Quote:
public OnPlayerExitVehicle(playerid, vehicleid) { if(IsInTMis[playerid]==1 && GetVehicleModel(vehicleid)==403) { pvtime[playerid] = 25; pvtimer[playerid] = SetTimerEx("pvTimeDown", 1000, 1, "d", playerid); SetPVarInt(playerid, "LastVehicle", vehicleid); } return 1; } |
Quote:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsInTMis[playerid]==1 && GetVehicleModel(vehicleid)==514) { KillTimer(pvtimer[playerid]); pvtime[playerid]=0; SetVehicleParamsForPlayer(vid, playerid, 0, 0); } |