SA-MP Forums Archive
[AYUDA] vehнculos de trabajo y faccion - 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: [AYUDA] vehнculos de trabajo y faccion (/showthread.php?tid=565033)



[AYUDA] vehнculos de trabajo y faccion - Kageyama - 24.02.2015

Hola, como se hace para detectar si me subi a un vehнculo de trabajo o a uno de faccion?


pawn Код:
new Faccion[3];
new Trabajos[3];

public OnGameModeInit()
{

Faccion[0]=AddStaticVehicleEx(427,1544.9489,-1676.1952,5.8668,90.0000,0,1,1000);
Faccion[1]=AddStaticVehicleEx(427,1544.9489,-1672.0538,5.8668,90.0000,0,1,1000);
Faccion[2]=AddStaticVehicleEx(427,1544.9489,-1684.3492,5.8668,90.0000,0,1,1000);


Trabajos[0]=AddStaticVehicleEx(532,-1212.9006,-998.5989,129.2604,270.0000,-1,-1,1000);
Trabajos[1]=AddStaticVehicleEx(532,-1212.9006,-1010.9230,129.2604,270.0000,-1,-1,1000);
Trabajos[2]=AddStaticVehicleEx(532,-1212.9006,-1023.6831,129.2604,270.0000,-1,-1,1000);

return 1;
}

public OnPlayerStateChange(playerid,newstate,oldstate)
{

SendClientMessage(playerid,-1,"Vehнculo de facciуn");

SendClientMessage(playerid,-1,"Vehнculo de trabajo");

return 1;
}