[pawn]
new autoo
public OnPlayerEnterVehicle(playerid,vehicleid)
{
autoo = SetTimerEx(\"AutoRepair\",1000,true,\"i\",playerid);
return 1;
}
public OnPlayerExitVehicle(playerid)
{
KillTimer(autoo);
return 1;
}
public AutoRepair(playerid)
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
return 1;
}
[/pawn]
[pawn]
new ppos[3];
CMD:sp(playerid,params)
{
GetPlayerPos(playerid,ppos[0],ppos[1],ppos[2]);
return 1;
}
CMD:lp(playerid,params)
{
SetPlayerPos(playerid,ppos[0],ppos[1],ppos[2]);
return 1;
}
[/pawn]