Automatic Car respawn every X time in rp server
#4

@Armada
You pasted a invalid code.

pawn Код:
#define RESPAWN_TIME 20 // Twenty minutes

public OnGameModeInit() {
     SetTimer("VehicleRespawn", RESPAWN_TIME * 60000, 1);
     return 1;
}

forward VehicleRespawn();
public VehicleRespawn() {
    for(new i = 0; i < MAX_VEHICLES; i ++ ) {
         SetVehicleToRespawn(i);
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)