їPorque no me entra al interior del remolque? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їPorque no me entra al interior del remolque? (
/showthread.php?tid=490679)
їPorque no me entra al interior del remolque? -
xHanks - 27.01.2014
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;
}
Re: їPorque no me entra al interior del remolque? -
Whyd - 27.01.2014
Debes usar la callback
OnPlayerKeyStateChange y las teclas,
https://sampwiki.blast.hk/wiki/Keys