Jump to content
  • 0

Question

Posted

Salut, ma puteti ajuta si pe mine ? Cand Spawnezi masina sa se poata despawna automat dupa 10-5 minute, de asemenea cand apesi tasta 2 sa nu poti face spam, va rog frumos daca ma puteti ajuta, Multumesc! Si cand intrii pe server sa nu se mai spawneze toate masinile automat. Multumesc

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

 

Pentru deelay la engine:

1: creezi o variabila numita 'EngineTime' new EngineTime[MAX_PLAYERS];
2: te duci la comanda /engine si faci verificarea urmatoare if(EngineTime[playerid] > 0) return SCM(playerid, COLOR_GREY, "Please wait 5 seconds.");
3: ii setezi deelay la comanda
  te duci undeva jos la comanda si ii setezi EngineTime[playerid] = 5;
4: faci la fel si cand apasa tasta 2

a, si pentru a scadea timpu te duci unde ai timerul de 1 sec si pui if(EngineTime[playerid] >= 1) EngineTime[playerid]--; 

Edited by hanako

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.