help! still no work!!
#1

Help with this command its still like this !!!!

Quote:

Name=Max
Level=5
Score=500
Money=100000


Код:
dcmd_madmin(playerid, params[])
{
    new givePlayer, str[128], PlayerFile[100], pName[24];
    if(Player[playerid][admin] < 5){
	return SendClientMessage(playerid, COLOR_RED, "You Dont Have Right To Use This Command");
	}
    new id;
    if(sscanf(params, "u", id))
	{
	    SendClientMessage(playerid, COLOR_RED, "USAGE: /madmin [playerid]");
	    return 1;
	}
    else if (id == INVALID_PLAYER_ID)
	{
	    SendClientMessage(playerid, COLOR_RED, "Player not found");
	    return 1;
	}
    else
    {
    	Player[givePlayer][admin] = 3;
       	SendClientMessage(givePlayer, COLOR_GREEN, "An administrator has given you administrator rights.");
		format(str, sizeof(str), "You have give %s(%d) administrator rights.", pName, playerid);
		SendClientMessage(playerid, COLOR_GREEN, str);
  		format(PlayerFile, sizeof(PlayerFile), "maxadmin/users/%s.ini", pName);
		dini_IntSet(PlayerFile, "Level", 3);
    }
    return 1;
}
Reply


Messages In This Thread
help! still no work!! - by [MKD]Max - 18.01.2011, 12:13
Re: help! still no work!! - by [MKD]Max - 18.01.2011, 13:10
Re: help! still no work!! - by [MKD]Max - 18.01.2011, 13:21
Re: help! still no work!! - by damiantof7 - 18.01.2011, 14:16
Re: help! still no work!! - by [MKD]Max - 18.01.2011, 14:54
Re: help! still no work!! - by Not available - 18.01.2011, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)