[HELP]IsPlayerInVehicle Please HELP!
#1

Hey guys, i'm trying to do a simple IsPlayerInVehicle implimented into OnPlayerText, could you help me please

pawn Код:
new carid = GetPlayerVehicleID(playerid);
          new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
          if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsASweeper(carid) || IsAHarvest(carid) || IsADrugHarvest(carid) || IsATank(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
          {
            if(AdminDuty[playerid] == 1)
                {
                    format(string, sizeof(string), "Stranger Says: %s", text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else
                {
                format(string, sizeof(string), "%s Says: %s", sendername, text);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
          }
I want
pawn Код:
if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsASweeper(carid) || IsAHarvest(carid) || IsADrugHarvest(carid) || IsATank(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
to something like
pawn Код:
if(Playerinvehicle)
or something.

Thanks

-Mike.
Reply


Messages In This Thread
[HELP]IsPlayerInVehicle Please HELP! - by [NYRP]Mike. - 17.10.2009, 21:24
Re: [HELP]IsPlayerInVehicle Please HELP! - by MenaceX^ - 17.10.2009, 21:42
Re: [HELP]IsPlayerInVehicle Please HELP! - by [NYRP]Mike. - 17.10.2009, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)