27.01.2014, 16:15
Bueno, estaba haciendo un sistema de interior pero al darle "G" no me entra al remolque, os dejarй el cуdigo haber si me ayudan.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new IDVEH = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_PASSENGER)
{
if (GetVehicleModel(IDVEH) == 435)
{
SetPlayerPos(playerid, 3142.718994, -2312.429932, 16.005524);
SendClientMessage(playerid, COLOR_GREEN, "Bienvenido al remolque.");
SetPlayerFacingAngle(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 1);
Estaenremolque1[playerid] = IDVEH;
SetPlayerVirtualWorld(playerid, IDVEH);
}
}
return 1;
}