Jump to content

Recommended Posts

Posted

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?

Posted (edited)
//Meri in onplayerconnect si scrii

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

 

Edited by K H A I N
Posted

        Mergi la // public OnPlayerConnect(playerid) //

adaugi asta

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

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.