12.12.2014, 18:21
Guys im Done here i Saving it in y_ini And All Things and no errors see
At Load use
and all
Now im in
Here
i Want Making Commands use ZCMD
How i Can Make Commands for it ?
i Make Commands and im make it only gteam Co-Owner or any things from 6 ?
and it will Save or there bug at save ?
there any bugs will be ?
i Want Making SetRank Commands its 7 Rank in My Admins System
Quote:
#define Trial_Admin 10 #define Junior_Administrator 11 #define General_Administrator 12 #define Senior_Administrator 13 #define Head_Administrator 14 #define Community_Manager 15 #define Co-Owner 16 |
Quote:
public LoadUser_data(playerid,name[],value[]) INI_Int("Admin",PlayerInfo[playerid][pRank]); |
and all
Quote:
if(PlayerInfo[playerid][pRank] == Trial_Admin) { //your things do here } else if(PlayerInfo[playerid][pRank] == Junior_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == General_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Senior_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Head_Administrator) { //your things do here } else if(PlayerInfo[playerid][pRank] == Community_Manager) { //your things do here } else if(PlayerInfo[playerid][pRank] == Co-Owner) { //your things do here } |
Here
Quote:
else if(PlayerInfo[playerid][pRank] == Co-Owner) { //your things do here } |
How i Can Make Commands for it ?
i Make Commands and im make it only gteam Co-Owner or any things from 6 ?
and it will Save or there bug at save ?
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Score",PlayerInfo[playerid][pScore]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Admin",PlayerInfo[playerid][pRank]);
PHP код:
enum pInfo
{
pCash,
pRank
}
i Want Making SetRank Commands its 7 Rank in My Admins System