more than one private car/personal car
#1

hello i created this by watching a video tutorial on *******

pawn Код:
new vcar

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid =GetPlayerVehicleID(playerid);
    new pname[MAX_PLAYER_NAME];

    GetPlayerName(playerid, pname, sizeof pname);
    if (newstate == PLAYER_STATE_DRIVER)
    {
         if (vehicleid == vcar)
         {
              if(strcmp(pname, "[XL]kaos999", true) == 0)

              {
                  SendClientMessage(playerid, COLOR_RED, "WELCOME VIP[XL]KAOS999");
                  return 1;
              }
              else

              {
                  RemovePlayerFromVehicle(playerid);
                  SendClientMessage(playerid, COLOR_RED, "THIS VEHICLE ONLY BELONGS TO VIP[XL]KAOS999");
              }
         }
    }
    return 1;
}

public OnFilterScriptInit()
{
    vcar = AddStaticVehicleEx(579, 263.2821, -1377.5272, 53.0415, 305.2861, 1, 1, 15);


    return 1;
}
and it works fine but one big problem is there any way i can add private cars more the easy way and not only two i want like 20-25 so please if any one knows an easy method to add more reply asap
Reply


Messages In This Thread
more than one private car/personal car - by kaos999 - 05.08.2013, 01:11
Re: more than one private car/personal car - by Marricio - 05.08.2013, 01:23
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 01:27
Re: more than one private car/personal car - by Marricio - 05.08.2013, 01:33
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 01:35
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 02:03
Re: more than one private car/personal car - by Isolated - 05.08.2013, 02:05
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 02:06
Re: more than one private car/personal car - by Isolated - 05.08.2013, 02:11
Re: more than one private car/personal car - by Marricio - 05.08.2013, 02:23

Forum Jump:


Users browsing this thread: 3 Guest(s)