SA-MP Forums Archive
Get player in vehicle? - 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: Get player in vehicle? (/showthread.php?tid=245847)



Get player in vehicle? - kemppis_ - 02.04.2011

So, i wanna spawn a vehicle, and when i spawn it, i wan't player to get inside it??

hows that possible?


Re: Get player in vehicle? - PCheriyan007 - 02.04.2011

try something like this
pawn Код:
if(strcmp(cmdtext, "/car",true)==0)
{
    new car = CreateVehicle(411,[Co-Ordinates go here],-1,-1); //Infernus
    PutPlayerInVehicle(playerid, car, 0);
    return 1;
}



Re: Get player in vehicle? - kemppis_ - 02.04.2011

Thanks!