Jump to content

Recommended Posts

Posted

CMD:makeadmin (playerid params bla bla

{

new playa,adminlevel;

if(sscanf (params,"ud",playa,adminlevel)) return SendClientMessage ( mesaj nu ai scris bine bla bIA

if (!IsPlayerConnected (playa) return 1;

Pinfo [playa][pAdmin] = adminlevel;

Mesajul ca ai primit admin

return 1;

}

 

Intelegi si tu ce trebuie completat ca nu e greu

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted
On 04.04.2016 at 12:24, Mister said:

CMD:makeadmin (playerid params bla bla

{

new playa,adminlevel;

if(sscanf (params,"ud",playa,adminlevel)) return SendClientMessage ( mesaj nu ai scris bine bla bIA

if (!IsPlayerConnected (playa) return 1;

Pinfo [playa][pAdmin] = adminlevel;

Mesajul ca ai primit admin

return 1;

}

 

Intelegi si tu ce trebuie completat ca nu e greu

n-am inteles ,spune-mi unde pun asta ,si da un ex cum pun ca admin lv 1 sa foloseasca cmd /.heal

 

Posted (edited)

Cmd:mameadmin(playerid, params[])

{

New tinta, alvl;

if(sscanf(params "ui", tinta, alvl)) return SendClientMessage(playerid, COLOR, "Foloseste: /makeadmin [id][lvl]"):

If(!IstPlayerConnected(tinta) return SendClientMessage(playerid, color, "Acest jucator nu este conectat");

P_Data[tinta][pAdmin] = alvl;

return 1;

}

CMd:heal(playerid, params[])

{

New tinta, Flooat:viata;

If(sscanf(params "uf", tinta, viata) return SendClientMessage();

If(P_Data[playerid][pAdmin] >=1)

{

SetPlayerHealtth(tinta, viata);

SendClientMessage(playerid, color, "ai  dat viata lui id %i", tinta);

SendClientMessage(tinta, color, "ai primit viata ");

}

return 1:

}

 

Sunai eu incepator sper ca am facut bine 

Edited by DreiVian
Posted (edited)

new admin[MAX_PLAYERS];

 

CMD:makeadmin(playerid, params[]) {

new i, level;

if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Nu esti Admin"); 

if(sscanf(params, "ud", i, level)) return SendClientMessage(playerid, -1, "/MakeAdmin[Playerid/Level]");

admin = level;

return 1; }

Cam asta e, acum tu trebuie s-o configurezi dupa variabilele tale.

Edited by xpLode

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.