| Share Code Pawn /setadmin | |
|
|
|
| | | | Tổng số bài gửi : 9 Join date : 21/02/2014
|
|
Share Code Pawn /setadmin
CMD:setadmin(playerid, params[]) { if(IsPlayerConnected(playerid))
{ if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin] >= 9)
{ new sendername[MAX_PLAYER_NAME]; new giveplayername[MAX_PLAYER_NAME]; new giveplayerid,level; GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername)); if (!sscanf(params, "ii", giveplayerid,level))
{ if (giveplayerid != INVALID_PLAYER_ID)
{ new string[128]; format(string, sizeof(string), "Admin%s Da Cho Ban Level Admin %d admin",sendername,level); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), "Ban Da Make %s Admin Level %d admin",giveplayername,level); SendClientMessage(playerid, COLOR_GRAD1, string); PlayerInfo[giveplayerid][Admin] = level;
}
} else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /setadmin [playerid] [level]");
} else SendClientMessage(playerid, 0xFF0000FF, "Ban Khong Du Kha Nang!");
} return 1; }
|
|
| Share Code Pawn /setadmin | |
|
Trang 1 trong tổng số 1 trang |
|
Permissions in this forum: | Bạn không có quyền trả lời bài viết
| |
|
|