Here's my code:
else if (strcmp(cmd, "fbiduty", true) == 0) {
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"fbiduty")) SendClientMessage(playerid, RED, "You Are Not A FBI Member");
else {
SetPlayerSkin(playerid, 3);
SetPlayerWeapon(playerid, 20, 300);
SetPlayerWeapon(playerid, 25, 300);
SetPlayerWeapon(playerid, 29, 100);
SetPlayerWeapon(playerid, 26, 400);
SetPlayerArmour(playerid, 100);
SetPlayerTeam(playerid, 15);
new name[20]; new string[128];
GetPlayerName(playerid, name, 20);
format(string, sizeof(string), "You are on FBI duty!", name);
SendClientMessage(playerid, BLUE, string);
}
return 1;
}
As you can see I am using (!IsPlayerCommandLevel, bla) in order to define the ranking system, I yet not know about the ini's. I can create the ini's file but I am unable to control it on my GUPS file. Can any body help me how do I add the code for GUPS to control the ini's for this FBI duty.