JoeMirana Posted October 21, 2020 Report Share Posted October 21, 2020 (edited) ..... Edited May 4, 2021 by JoeMirana Quote Link to comment Share on other sites More sharing options...
1 Sancky Posted October 22, 2020 Report Share Posted October 22, 2020 Inlocuieste verificarea aceea de la deelay cu asta if(GetPVarInt(playerid, "fish_deelay") > gettime()) return SendClientMessage(playerid, -1, "You can fish again in one minute."); 1 Quote Link to comment Share on other sites More sharing options...
1 Sancky Posted October 22, 2020 Report Share Posted October 22, 2020 (edited) 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 October 22, 2020 by SanckyAdv Quote Link to comment Share on other sites More sharing options...
1 Sancky Posted October 22, 2020 Report Share Posted October 22, 2020 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>; Quote Link to comment Share on other sites More sharing options...
0 irinel77 Posted October 22, 2020 Report Share Posted October 22, 2020 (edited) 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 October 22, 2020 by IrinelBro57 Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 (edited) ... Edited May 4, 2021 by JoeMirana Quote Link to comment Share on other sites More sharing options...
0 irinel77 Posted October 22, 2020 Report Share Posted October 22, 2020 La linia 50033, la SendClientMessage(playerid, pune un -1 dupa playerid " SendClientMessage(playerid, -1, "You can fish again in one minute."); Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 (edited) ..... Edited May 4, 2021 by JoeMirana Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 (edited) 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 October 22, 2020 by JoeMirana Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 (edited) ......... Edited May 4, 2021 by JoeMirana Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 va trimit un mesaj privat Quote Link to comment Share on other sites More sharing options...
0 JoeMirana Posted October 22, 2020 Author Report Share Posted October 22, 2020 +rep thanks Quote Link to comment Share on other sites More sharing options...
Question
JoeMirana
.....
Edited by JoeMiranaLink to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.