Vehicle Exit help
#1

How i can set a timer when a player exit from vehicle id 514??
Reply
#2

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..
Reply
#3

You don't really need a timer, you can just put this

pawn Код:
if(GetVehicleID == 514)
{
   
}
under OnPlayerExitVehicle or OnPlayerChangeState.
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)