Jump to content

Recommended Posts

Posted

Nu cred ca este chiar un tutorial. Dar ajuta foarte mult incepatori cu sistemul de vehicule unde trebuie sa numeri toate vehiculele si nu iti iese.

Pasul 1:

Faci o comanda /allcars

Pasul 2:

Adaugi in comanda asta:

[pawn]new car=0,string[256];

for(new i = 1;i<MAX_VEHICLES;i++)

{

    if(IsValidVehicle(i))

    {

        car++;

    }

}

format(string ,sizeof(string), " Sunt %d vehicule pe server " ,car);

SendClientMessage(playerid, 0xFFFFFFFF, string);[/pawn]

Sigur iti va da id-ul ultimului vehicul.

Atentie sa nu aveti vehicule personale pe server daca utilizati comanda

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.