03.11.2009, 22:07
Hello again all im having this very annoying problem. No matter how I try do this always seem`s messed up. I want these to read like cop car models not actual vehicle ids how would I go about doing that. The setup works fine as it is but i prefer model because i cannot add additional vehicles without interference.Thanks for looking.
Код:
ReservedCar() { new RS[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}; for(new rs = 0; rs < MAX_PLAYERS; rs++) { if (IsPlayerConnected(rs) && Player[rs][Kicked] == 0) { Player[rs][CarCheck] = GetPlayerVehicleID(rs); for (new rs2 = 0; rs2 < sizeof(RS); rs2++) { if (Player[rs][CarCheck] == RS[rs2]) { return 1; } } } } return 0;