07.10.2013, 06:32
Introduction:
As you All know for a Roleplay server we need to make a Login/Register System and then Admin System and its levels. My whole Admin System is Working Perfectly as I said it's enum like that:
And I put this in before every admin commands,
And Also I set Player Admin levels via Users File.
That was Just the Introduction.
HELP INTRODUCTION:
So I made a Guider System like Admin System and also made its commands, But It's levels is creating Problems.
I did like that:
And Edit Users File like that to set my own Level of Guider.
And I put in Every Guiding Command Like that:
And made /guidelist to see the Online Guiders:
PROBLEMS WHICH ARE CREATING:
1. The Problems are, It is not showing my name in /guidelist
2. All the Guiders Commands are not Working.
Help me Please in Solving This Problem.
Waiting for your Reply Friends !
As you All know for a Roleplay server we need to make a Login/Register System and then Admin System and its levels. My whole Admin System is Working Perfectly as I said it's enum like that:
pawn Код:
enum PlayerInfo
{
Pass[129], //User's password
pAdminLevel,
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths //User's deaths
}
pawn Код:
if(pInfo[playerid][pAdminLevel] < 1 ) return 0;
That was Just the Introduction.
HELP INTRODUCTION:
So I made a Guider System like Admin System and also made its commands, But It's levels is creating Problems.
I did like that:
pawn Код:
enum PlayerInfo
{
Pass[129], //User's password
pAdminLevel,
pGuideLevel, //Edit <
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths //User's deaths
}
Код:
[Player's Data] Password = AdminLevel = 5 VIPLevel = 0 Money = 0 Scores = 0 Kills = 3 Deaths = 7 GuideLevel = 3
pawn Код:
if(pInfo[playerid][pGuideLevel] < 1 ) return 0;
pawn Код:
CMD:guiders( playerid, params[ ] )
{
new
count
;
SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] List of Online Guiders:" );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) ) continue;
if( pInfo[i][pGuideLevel] >= 1 )
{
new
temp[ 32 ],
name_[ MAX_PLAYER_NAME ]
;
GetPlayerName( i, name_, MAX_PLAYER_NAME );
format( temp, sizeof( temp ), "<%d> %s Level %d", i, name_, pInfo[i][pGuideLevel]);
SendClientMessage( playerid, COLOR_LIGHTGREEN, temp );
count++;
}
}
if(count == 0)
{
SendClientMessage( playerid, COLOR_NOWSE, "- No Guiders Currently Online." );
SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] End of List !" );
}
else SendClientMessage( playerid, COLOR_YELLOW, "[ ! ] End of List !" );
return 1;
}
1. The Problems are, It is not showing my name in /guidelist
2. All the Guiders Commands are not Working.
Help me Please in Solving This Problem.
Waiting for your Reply Friends !