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



Is player in vehicle - kalanerik99 - 21.02.2013

Hi! Can someone make this teleport that it will teleport vehicle aswel

Код:
if(strcmp(cmdtext,"/mc",true)==0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2351.6055,-1633.1575,483.6939);
GameTextForPlayer(playerid,"~g~Mauntain Chiiliand",4000,6);
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "** %s has teleported to Maunt Chiliand (/mc). ", pname);
SendClientMessageToAll(orange, string);
return 1;
}



Re: Is player in vehicle - Jay_ - 21.02.2013

Use SetVehiclePos to do this.

Please use the search function in future and read the rules.