Hi,
Ich habe jetzt ja mit dem Auto destroyen hingekriegt.
Jetzt jedoch wenn man zurück ins Car geht, Destroyt das Auto trozdem obwohl der Timer gekillt wird.
Code:
new cartimer[MAX_PLAYERS];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 0)
{
KillTimer(cartimer[playerid]);
cpVehicle[playerid] = vehicleid;
return 1;
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
cartimer[playerid] = SetTimerEx("DeleteVehicleAfterTime", 60000, false, "i", vehicleid);
SendClientMessage(playerid,GELB,"Your Vehicle will be Destroyed in 1 Minute if you don´t come back!");
return 1;
}
Was tun?