Jump to content
  • 0

Actiune cand jucatorul alearga



2 answers to this question

Recommended Posts

  • 0
Acum 52 minute, NERS a spus:

Salut, stie cineva cum pot sa fac sa se execute ceva dupa ce jucatorul alearga pentru 3 minute fara sa se opreasca?

Da, faci o variabila aia find un timer ce se aduna pana ajunge la 3 minute, dupa care la un timer de o secunda adaugi

if(GetPlayerAnimationIndex(playerid) == animatia de alergat)

dupa care jos adaugi timerul pe care l-ai creat gen Alergat[playerid]++; si tot asa pana ajunge la 180 de secunde find in animatia 'de alergat' nu ii stiu codul ai putea sa adaugi la un timer de o secunde functia animationindex si %d intr-un format si alergi si o sa iti zica codul pentru alergat, e dupa care la functia unde ai determinat animatia jucatorului de alergat sa ii creasca timerul adaugi else Alergat[playerid] = 0; adica daca nu are animatia 'de alergat' sa ii opreasca timpul.



new TimpAlergat[MAX_PLAYERS];

// Asta adaugi intr-un timer de 1 secunda

if(GetPlayerAnimationIndex(playerid) == 1231) TimpAlergat[playerid]++;
else TimpAlergat[playerid] = 0;
if(TimpAlergat[playerid] >= 180) SendClientMessage(playerid, -1, "Felicitari, ai alergat pentru 3 minute.");


Edited by StrikerM

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.