18.01.2011, 12:13
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; }