A question regarding a CnR mode - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A question regarding a CnR mode (
/showthread.php?tid=235075)
A question regarding a CnR mode -
spedico - 05.03.2011
I want to make it so when I enter a vehicle, I get wanted level. But I need to make it so if I enter a vehicle I have previously entered, I don't get wanted level. How do I do this?
Re: A question regarding a CnR mode -
ElChapoGuzman - 05.03.2011
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
GetPlayerWantedLevel(playerid, 1);
return 1;
}
im sorry but im newb and i hope it works it untested and if anybody help put it like pawncode and let me know if it works
edit:lolol didnt read end of your request
Re: A question regarding a CnR mode -
mprofitt - 05.03.2011
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
GetPlayerWantedLevel(playerid,wanted)
if(PrevVehicle[playerid] != vehicleid) SetPlayerWantedLevel(playerid, wanted+1);
PrevVehicle[playerid] = vehicleid;
return 1;
}