Jump to content
  • 0

Gamemode Burned | Ajutor la comanda [/v]


Question

Posted

Buna seara, am o rugaminte daca ma puteti ajuta... cum pot face sa pun in [/v] id-ul masinii si 'Spawn all vehicles'.

Nu reusesc sa-i dau de cap.

Gamemode burned.

5 answers to this question

Recommended Posts

  • 0
Posted

Am adaugat un stract la final (stock ShowPlayerVehicle) si dupa in dialog_garage am pus sa ii le spawneze.

  • 0
Posted (edited)

Cel mai bine e sa faci spawnare in radius ca sa nu deranjezi alti jucatori,exemplu: a iesit playerul din masina ca sa cumpere ceva si tu hop spawnezi toate automobilele....ca sa nu te complici iti dau comanda gata facuta

CMD:rescar(playerid, params[]) {
	( --verificarea daca este adrministrator-- ) return SendClientMessage( playerid, -1, !"Nu ai aceasta permisiune" );
  
    if( sscanf( params,"d", params[0] ) ) return SendClientMessage( playerid, -1, !"/rescar [radius]" );
    if( params[ 0 ] <= 0 ) return SendClientMessage( playerid, -1, !"Introduci cifre care sunt interzise);
  
    for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
    {
        new Float: x,Float: y,Float: z;
        GetVehiclePos( i,x,y,z );
        if( IsPlayerInRangeOfPoint(playerid,params[ 0 ],x,y,z) ) SetVehicleToRespawn( i );
    }                                               
	return true;
}

 

Edited by K H A I N
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.