OnplayerEnterVehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnplayerEnterVehicle (
/showthread.php?tid=83153)
OnplayerEnterVehicle -
pumpkin - 22.06.2009
hello , first of all ... YES I SEARCHED , didnt find nothing like that .
Okay .. i am looking something like this : If player enters in vehicle then it disables car veh id , err etc : You entered Vehicle (1) [This is the First vehicle you added , etc AddStaticVehicleEx(470,2804.395752,-1108.883301,30.330854,0.1452, 44, 86, 60000);
err i hope yah understand me , soz
Re: OnplayerEnterVehicle -
yezizhu - 23.06.2009
Disable....
Lock, or Destroy?
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate){
if(newstate == PLAYER_STATE_DRIVER){
if(GetPlayerVehicleID(playerid)){
//use GetPlayerVehicleID(playerid)
}
}
return true;
}