Jump to content
Sign in to follow this  
K0hL

Kick player

Recommended Posts

Salut ! Vreau sa-mi deschid un server de samp cu un prieten , dar cum pot face ca inainte de deschidere sa nu poata intra pe server? Nu pot pune parola pentru ca este pe ultra-h.

Pot face cand un player intra pe server sa verifice daca este admin si daca nu este sa ii dea kick?

Share this post


Link to post
Share on other sites
//Meri in onplayerconnect si scrii

if( pInfo [ playerid ] [ pAdmin ] < 1 ) return Kick( playerid );

 

Edited by K H A I N

[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click

Share this post


Link to post
Share on other sites

        Mergi la // public OnPlayerConnect(playerid) //

adaugi asta

        if(PlayerInfo[playerid][pAdmin] < 1 );
        SCM(playerid, COLOR_WARNING, "Nu esti Admin!");
        KickEx(playerid);
        return true;

Share this post


Link to post
Share on other sites

Sau mai simplu, sa bagi parola la server.

Intrii in server.cfg, si bagi password si aici scrii si parola si dupa save, dai restart, si intra doar cei care stiu parola.

Share this post


Link to post
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
Reply to this topic...

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.