OnPlayerEnterVehicle
#1

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 =]
Reply
#2

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

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

You're welcome. =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)