22.05.2011, 20:02
I tried to make some cars only for Army Members,i did it good (i think) complied without any errors..but when i tried to test it IG i couldn't see any vehicle,all dismissed.
This is how i made this.
@ the top
under
Then THIs:
To every car i want
and
I think i made it good and i think the problem is in AddStaticVehicle .. (i'm using streamer).
Hope someone can help,thanks.
This is how i made this.
Код:
enum TeamCars { Army }
Код:
new Cars[TeamCars];
Then THIs:
Код:
Cars[Army] = AddStaticVehicle(432,2795.45410156,-2417.37695312,13.73352051,90.00000000,-1,-1); //Rhino
and
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == 2) { new CarCheck = GetPlayerVehicleID(playerid); if(CarCheck == Cars[Army] ) { if(gTeam[playerid] != TEAM_ARMY) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "You don't have keys for this vehicle!"); return 1; } } return 1; } return 1; }
Hope someone can help,thanks.