12.10.2014, 19:08
eu fiz uma pista na бgua ai os carros carrega primeiro que os objetos e ai eles cai na agua ajuda ai...
forward Nomedapublic();
public Nomedapublic(){
return 1;
}
stock CriarCarros(); {
//Coloque aqui os CreateVehicles
return 1;
}
Й pra respawn ou й pra criar?
pawn Код:
|
public carro1()
{
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= CAR_AMOUNT; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
}
public OnGameModeInit() {
SetTimer("CriarCarros", 5000, false);
return 1;
}
forward CriarCarros();
public CriarCarros() {
CreateVehicle(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,60000);
CreateVehicle(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,60000);
CreateVehicle(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,60000);
CreateVehicle(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,60000);
return 1;