Jump to content
  • 0

Kick playerilor care joaca pe telefon


TheGodfather

Question

Salut, am incercat metoda asta pentru a da kick playerilor care joaca de pe telefon dar inca pot intra. Ma puteti ajuta?

La functia OnPlayerLoginIn am adaugat

if(FPS2[playerid]-1 == 0) 
        {SCM(playerid, COLOR_CLIENT, "You can not play from a phone. This server is pc only.");
         new string[128];
         format(string, sizeof(string), "AdmBot: %s was kicked by AdmBot, reason: playing from a phone.", GetName(playerid));
         SendAdminMessage(COLOR_LIGHTRED, string, 1);
         return KickEx(playerid);}

Am cautat peste tot prin GM ce inseamna acel FPS2[playerid]-1 dar nu gasesc, uneori cand sunt aratate FPS-urile, de ex la comanda /id apare FPS[playerid], dar uneori apare FPS[playerid]-1. Cum imi pot da seama ca un jucator joaca de pe telefon?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
20 minutes ago, Banditul said:

Primesc eroarea asta cand pun codul in sublime: \pawno\include\YSI_Players\y_android\y_android_entry.inc(89) : fatal error 100: cannot read from file: "..\..\YSI_Core\y_core\y_core_entry"

Link to comment
Share on other sites

  • 0
5 minutes ago, Banditul said:

https://github.com/pawn-lang/YSI-Includes/releases

Este inclus in YSI 5, nu e o librarie separata recomand sa folosesti ultima versiune

Am instalat toata libraria, \pawno\include\YSI_Players\y_android\y_android_entry.inc(90) : fatal error 100: cannot read from file: "..\..\YSI_Core\y_core\y_rconfix"

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.

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