Jump to content
  • 0

pomoc Online Admins


Mivčo

Dotaz

Caute mam script

 

#include

//------------------------------------------------------------------------------

#define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1

//------------------------------------------------------------------------------

#define MAX_PLAYERS_EX 100

//-----------------------------------------------------------------

 

enum INFO_NAME

{

AdminLevel,

}

 

//------------------------------------------------------------------------------

 

new Informace[MAX_PLAYERS_EX][iNFO_NAME];

dcmd_admins(playerid, params[])

{

#pragma unused params

new string[2048];

new sendername[MAX_PLAYER_NAME];

if(IsPlayerConnected(playerid))

{

for (new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

if(PlayerInfo[Level] >= 1 && AccInfo[Hide] == 0)

{

GetPlayerName(i , sendername, sizeof(sendername));

format(string, sizeof(string),"%s[Level %d]: %s [iD:%i]\n", string,PlayerInfo[Level], sendername,i);

}

}

}

ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,".::Online Admins::.",string,"Okey","Cancel");

}

return 1;

}

 

public OnPlayerCommandText(playerid, cmdtext[])

{

dcmd(admins, 6, cmdtext);

return 1;

}

 

 

stock Jmeno(playerid)

{

new n[24];

GetPlayerName(playerid,n,24);

return n;

}

 

new PlayerInfo[ MAX_PLAYERS ];

 

a mam tam 4 errory pokusil som sa aj upravil ale marne nejdu :(

PS: HELP!

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

Nemas nadefinovane enumy AccInfo a PlayerInfo mas tam INFO_NAME akurat... proste nechapem naco nieco kopirujes, nieco tam zmenis a potom sam nevies co vlastne mas, co vlastne nemas....

 

 

if(PlayerInfo[Level] >= 1 && AccInfo[Hide] == 0) zmen na if(Informace[AdminLevel] >= 1)

Link to comment
Share on other sites

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