Team Cars
#6

Here is what I ended up doing.

pawn Код:
enum Teamcars
{
    t11,
    t12,
    t13,
    t14,
    t15,
    t16,
}
new Cars[Teamcars];
pawn Код:
Cars[t11] = CreateVehicle(463,-168.0218,1079.2097,19.2757,359.2158,0,0,120);
    Cars[t12] = CreateVehicle(463,-165.4124,1078.8523,19.2632,5.6784,0,0,120);
    Cars[t13] = CreateVehicle(463,-164.5489,1070.1666,19.2825,5.6784,0,0,120);
    Cars[t14] = CreateVehicle(463,-166.7310,1069.9669,19.2808,2.9687,0,0,120);
    Cars[t15] = CreateVehicle(463,-174.7683,1068.1425,19.2830,271.6882,0,0,120);
    Cars[t16] = CreateVehicle(463,-174.6816,1070.5337,19.2828,269.2234,0,0,120);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
      return 1;
    }
    return 1;
}
I have no clue how to make it check the car was one of the team ones?
Reply


Messages In This Thread
Team Cars - by retart441 - 09.11.2009, 01:09
Re: Team Cars - by retart441 - 09.11.2009, 19:57
Re: Team Cars - by dice7 - 09.11.2009, 19:59
Re: Team Cars - by retart441 - 09.11.2009, 20:00
Re: Team Cars - by LarzI - 09.11.2009, 20:08
Re: Team Cars - by retart441 - 09.11.2009, 20:36

Forum Jump:


Users browsing this thread: 2 Guest(s)