[HELP] Please help cp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Please help cp (
/showthread.php?tid=486660)
[HELP] Please help cp -
Luca12 - 09.01.2014
pawn Код:
if(carid >= Nafta[3] && carid <= Nafta[6] && carid >= NaftaCisterna[0] && carid <= NaftaCisterna[3] && CP[playerid] == 2107)
{
CP[playerid] = 2108; TogglePlayerControllable(playerid,0); GorivoPrijevoz[playerid] = 1; GameTextForPlayer(playerid,"~w~utovar goriva",5000,1);TogglePlayerControllable(playerid,0); SetTimerEx("GorivoUkrcaj",13000,false,"i",playerid); PlayerPlaySound(playerid,1138,0,0,0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,2149.7993,-2147.8916,13.5469,6.0);
}
hello I just add there carid == NaftaCisterna[0] && carid <= NaftaCisterna[3] so this is if I have attached on trunk then I get should pass on cp but I enter in the cp and nothing happens?Why? Thanks
Re: [HELP] Please help cp -
MatriXgaMer - 09.01.2014
Use
OnPlayerEnterCheckpoint
Re: [HELP] Please help cp -
Luca12 - 09.01.2014
when I move naftacisterna from the code everything works fine but I need that I want if player does not this attached to trunk then he not pass on cp
Re: [HELP] Please help cp -
Luca12 - 10.01.2014
anyone? Thanks
Re: [HELP] Please help cp -
dominik523 - 10.01.2014
Use
this to check if a trailer is attached to the vehicle.
Re: [HELP] Please help cp -
Luca12 - 10.01.2014
I have 2 kind of trailer for that job one trailer is for fuel and another is for delivering meat
Re: [HELP] Please help cp -
offon - 10.01.2014
PHP код:
if(IsTrailerAttachedToVehicle(vehicleid))
Replace vehicleid with the ID of the fuel and the another trailer.
Re: [HELP] Please help cp -
Luca12 - 10.01.2014
it doesn'twork I go to cp with that trailer for fuel and nothing happens.
edit: And also I try just trailer id which si 584 and I go to cp with that trailer and nothing happens
pawn Код:
if(IsTrailerAttachedToVehicle(carid >= NaftaCisterna[0] && carid <= NaftaCisterna[3]))