Jump to content
  • 0

/fish timer



11 answers to this question

Recommended Posts

  • 1

Pai, daca ai iterator pentru admini, se poate face usor.

if(PlayerInfo[playerid][pLevel] < 3 && !Iter_Count(Admins)) return SendClientMessage(playerid, -1, "Nu poti vorbii in chat.");


edit: daca nu ai iterator pentru admini, poti creea o variabila globala si daca playerul care se conecteaza are admin plusezi variabila, iar daca se deconecteaza si are admin, scazi variabila.


Edited by SanckyAdv
Link to comment
Share on other sites

  • 1

nu ai iterator pentru admini, poti incerca cealalta metoda pe care ti-am zis-o cu variabila globala, sau poti face iterator pt admini, cand se logheaza verifici daca e admin, adaugi id ul playerului in iterator, Iter_Add(numele iteratorului, playerid); iar la deconectare verifici daca e admin si ii dai Iter_Remove din iterator.


p.s: creezi iteratorul undeva sus in gamemode, in niciun callback, il creezi ca fiind variabila globala asa: new Iterator:Admins<MAX_PLAYERS>;

Link to comment
Share on other sites

  • 0

Dupa FishTimerr[playerid]...adauga SetPVarInt(playerid, "fish_deelay", gettime()+60);

Iar inainte de ValidFishPlace adauga if(GetPVarInt(playerid, "fish_deelay" > gettime()) return SendClientMessage(playerid, -1, "You can fish again in one minute.");


Edited by IrinelBro57
Link to comment
Share on other sites

  • 0

problema rezolvata, multumesc

Vreau daca un jucator este la nivel este sub 3 , și niciun administrator nu este online , Acest jucator nu poate conversa prin chat


cum se face asta?

eu am :  pLevel  si pAdmin


Trebuie sa adaug, dupa 

public OnPlayerText(playerid, text[])


Edited by JoeMirana
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.