20.10.2010, 15:16
Where are you teleporting to? So they do a command and only the player goes to the location, or does the vehicle disappear?
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;
}