SA-MP Forums Archive
Vehicle ID problem - 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: Vehicle ID problem (/showthread.php?tid=184534)

Pages: 1 2


Re: Vehicle ID problem - randomkid88 - 20.10.2010

Where are you teleporting to? So they do a command and only the player goes to the location, or does the vehicle disappear?


Re: Vehicle ID problem - Badger(new) - 20.10.2010

pawn Код:
if(!strcmp(cmdtext,"/Command",true)){
    new vehicleid=GetPlayerVehicleID(playerid);
    if(vehicleid){//The same as "If the player is in a vehicle"
        SetVehiclePos(vehicleid,x,y,z);
        //When a player in a vehicle teleports
    }
    else{
        SetPlayerPos(playerid,x,y,z);
        //When a player teleports
    }
    return 1;
}



Re: Vehicle ID problem - knackworst - 20.10.2010

ahh thanks bro!