28.07.2009, 17:13
Okay well I've successfully made the teleport work but my car turns invisible when I get there? I made this:
Is there like a SetVehicleInterior or something?
Thanks, Anthony.
Код:
if(!strcmp(cmdtext,"/teleport4",true)) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -1394.20, 987.62, 1023.96); SetPlayerInterior(playerid, 15); } else { SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be the driver!"); SetPlayerInterior(playerid, 15); return 1; } } else { SetPlayerPos(playerid, -1394.20, 987.62, 1023.96); } return 1; }
Thanks, Anthony.