28.11.2010, 11:46
Or this one..this works.i tested:
Код:
if(!strcmp(cmdtext, "/entrance", true)) { if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 2857.31,-1960.78,10.9376); //i have my own coordinates but u can change! SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { SetPlayerPos(playerid, 2857.31,-1960.78,10.9376); //same goes here SetPlayerFacingAngle(playerid, 0.0); } SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, " Welcome to blah blah!"); return 1;