21.05.2012, 22:25
Quote:
for(new o = 0; o < GetMaxPlayers(); o ++ ) {
This. Chnage it to pawn Код:
|
Код:
forward VehicleRespawn(playerid, vehicleid, ispassenger); public VehicleRespawn(playerid, vehicleid, ispassenger) { GameTextForPlayer(playerid,"~r~Vehicles ~g~Respawn",5000,5); for(new i = 0; i < MAX_VEHICLES; i ++ ) { for(new o = 0, a = GetMaxPlayers(); o < a; o ++ ) { <<<<<<<<<<<<<< im change this if(!IsPlayerConnected(o)) continue; if(IsAnyBodyInVehicle(i)) continue; SetVehicleToRespawn(i); } } return 1; } stock IsAnyBodyInVehicle(vid) { for(new i = 0; i < GetMaxPlayers(); i ++ ) { <<<<<<<<<<< this need to change ? if(IsPlayerInVehicle(i, vid)) return 1; } return 0; }