Vehicle Exit help - 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: Vehicle Exit help (
/showthread.php?tid=515506)
Vehicle Exit help -
jimis - 26.05.2014
How i can set a timer when a player exit from vehicle id 514??
Re: Vehicle Exit help -
NaClchemistryK - 26.05.2014
under onplayerexitvehicle
pawn Код:
if(GetVehicleID(playerid) == 514)
{
SetTimer(func name[],interval,repeating);
}
it's such a simple script..
edit::

orry, forgot the params behind the function..
Re: Vehicle Exit help -
rappy93 - 26.05.2014
You don't really need a timer, you can just put this
pawn Код:
if(GetVehicleID == 514)
{
}
under OnPlayerExitVehicle or OnPlayerChangeState.
Re: Vehicle Exit help -
NaClchemistryK - 26.05.2014
he asked for a timer, I gave him the script with a timer. I'd just love it if he asked for a punch
pawn Код:
stock KOPunch(playerid)
{
return SetPlayerHealth(playerid,0);
}
public OnPlayerExitVehicle(playerid,vehicleid)
{
if(GetVehicleID(playerid) == 514) return KOPunch(playerid)
return 1;
}