SA-MP Forums Archive
OnPlayerEnterVehicle - 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: OnPlayerEnterVehicle (/showthread.php?tid=140438)



OnPlayerEnterVehicle - TheNotorius - 09.04.2010

Hey,

I Recently Created This
And Just Tried it, But It Wont Come Up With anything
Even When I'm a Different Team

Here's The Code:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(vehicleid == 520)
  {
    if(gTeam[playerid] == TEAM_ARMY)
    {
        SendClientMessage(playerid,COLOR_GREEN,"Welcome To The Hydra!");
    }
    else SendClientMessage(playerid,COLOR_RED,"You Are Not ARMY!");
  }
    return 1;
}
Any Help Would Be Appreciated =]


Re: OnPlayerEnterVehicle - Correlli - 09.04.2010

vehicleid is NOT a modelid. Use GetVehicleModel to check for a model-ID.


Re: OnPlayerEnterVehicle - TheNotorius - 09.04.2010

Quote:
Originally Posted by Don Correlli
vehicleid is NOT a modelid. Use GetVehicleModel to check for a model-ID.
Thank's Dude! <3.


Re: OnPlayerEnterVehicle - Correlli - 09.04.2010

You're welcome. =)