09.11.2009, 20:36
Here is what I ended up doing.
I have no clue how to make it check the car was one of the team ones?
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;
}