Is player in vehicle
#1

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;
}
Reply
#2

Use SetVehiclePos to do this.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)