23.04.2010, 18:28
Usa o OnVehicleSpawn
https://sampwiki.blast.hk/wiki/OnVehicleSpawn
estuda isto:
Usa tb:
SetTimmer
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/OnVehicleSpawn
estuda isto:
pawn Код:
stock LockVehicle(vehicleid, bool:lock) {
for(new i; i<MAX_PLAYERS; i++) {
if(lock == true) {
SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
}
else if(lock == false) {
SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
}
}
return 1;
}
Usa tb:
pawn Код:
forward coiso(playerid);
https://sampwiki.blast.hk/wiki/SetTimer