SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/04/2014, 01:32 PM   #1
ChristianIvann09
Banned
 
Join Date: Nov 2013
Location: (Pasay City) Manila,Philippines
Posts: 621
Reputation: 11
Default [NGG EDIT] Help with this iAdminValue

So, i have the NGG edit . im trying to edit all. Anyone can help?

with this

iAdminValue

Where is the stock of it? like Level 99999 admin= Community Owner

i searched for it but not found

Thanks in advance!
ChristianIvann09 is offline   Reply With Quote
Old 03/04/2014, 01:35 PM   #2
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 238
Default Re: [NGG EDIT] Help with this iAdminValue

As far as i know, RCON + 1337 level is highest and i saw in many gamemode modes too, Show your level defines?
__________________
Host SAMP with Evolution-Host

Bingo is offline   Reply With Quote
Old 03/04/2014, 01:44 PM   #3
ChristianIvann09
Banned
 
Join Date: Nov 2013
Location: (Pasay City) Manila,Philippines
Posts: 621
Reputation: 11
Default Re: [NGG EDIT] Help with this iAdminValue

Quote:
Originally Posted by [vTc]Patroool View Post
As far as i know, RCON + 1337 level is highest and i saw in many gamemode modes too, Show your level defines?
Nope, 99999 is highest and its Community Owner.. I want to change it

I dont know where to find the level defines

P.S: Im using NGG edit trying my best to edit all FEAUTURES
ChristianIvann09 is offline   Reply With Quote
Old 03/04/2014, 01:50 PM   #4
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 238
Default Re: [NGG EDIT] Help with this iAdminValue

Show me full code, Show me setlevel command.
__________________
Host SAMP with Evolution-Host

Bingo is offline   Reply With Quote
Old 03/04/2014, 02:02 PM   #5
ChristianIvann09
Banned
 
Join Date: Nov 2013
Location: (Pasay City) Manila,Philippines
Posts: 621
Reputation: 11
Default Re: [NGG EDIT] Help with this iAdminValue

Quote:
Originally Posted by [vTc]Patroool View Post
Show me full code, Show me setlevel command.
Here..

Code:
CMD:makeadmin(playerid, params[])  {
	if(PlayerInfo[playerid][pAdmin] >= 99998) {

		new
		iAdminValue,
		iTargetID;

		if(sscanf(params, "ui", iTargetID, iAdminValue)) {
			SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /makeadmin [playerid] [level]");
		}
		else if(IsPlayerConnected(iTargetID)) {
			if(PlayerInfo[iTargetID][pHelper] >= 1) {
				SendClientMessageEx(playerid, COLOR_GRAD1, "You cannot make Community Helpers admins!");
			}
			else {

				new
				szMessage[47 + (MAX_PLAYER_NAME * 2)];

				PlayerInfo[iTargetID][pAdmin] = iAdminValue;
				format(szMessage, sizeof(szMessage), "AdmCmd: %s has promoted %s to a level %d admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
				ABroadCast(COLOR_LIGHTRED,szMessage, 2);
				format(szMessage, sizeof(szMessage), "You have been promoted to a level %d admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
				SendClientMessageEx(iTargetID, COLOR_LIGHTBLUE, szMessage);
				format(szMessage, sizeof(szMessage), "You have promoted %s to a level %d admin.", GetPlayerNameEx(iTargetID),iAdminValue);
				SendClientMessageEx(playerid, COLOR_LIGHTBLUE, szMessage);
			}
		}
		else SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid player specified.");
	}
	else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	return 1;
}


CMD:maketempadmin(playerid, params[])
{
	new string[128], giveplayerid, minutes, rank;
	if(sscanf(params, "udd[64]", giveplayerid, rank, minutes)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /maketempadmin [playerid] [rank] [minutes]");
	if(PlayerInfo[playerid][pAdmin] >= 99998) {
		if(IsPlayerConnected(giveplayerid)) {
			if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin]) {
				SendClientMessageEx(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level administrator.");
				return 1;
			}
			PlayerInfo[giveplayerid][pAdmin] = rank;
			IsTempAdmin[giveplayerid] = 1;
			/*new IsTempAdmin[MAX_PLAYERS];*/
			PlayerInfo[giveplayerid][pAdminTime] = minutes*60;
			format(string, sizeof(string), "AdmCmd: %s has been temporarily made Level %d Admin for %d minutes by %s", GetPlayerNameEx(giveplayerid), rank, minutes, GetPlayerNameEx(playerid));
			SendClientMessageToAllEx(COLOR_LIGHTRED, string);
			/*format(szMessage, sizeof(szMessage), "You have been promoted to a level %d admin by %s for %d minutes.", rank, GetPlayerNameEx(playerid), minutes);
			SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, szMessage);*/
		}
		else SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid player specified.");
	}
	else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	return 1;
}
Thats why i need your help to find that fucking iAdminValue stocks,forward,enum,arrays
ChristianIvann09 is offline   Reply With Quote
Old 04/04/2014, 01:36 AM   #6
ChristianIvann09
Banned
 
Join Date: Nov 2013
Location: (Pasay City) Manila,Philippines
Posts: 621
Reputation: 11
Default Re: [NGG EDIT] Help with this iAdminValue

bump
ChristianIvann09 is offline   Reply With Quote
Old 04/04/2014, 01:45 AM   #7
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 238
Default Respuesta: [NGG EDIT] Help with this iAdminValue

A'ight,

As you can see this >= 99998.

This means if player level is greater Тhan (>) 99998 he can use that command so to set him as community owner you need to set your admin level as 99998 in order to use this cmd.

Now here what you have to change?
__________________
Host SAMP with Evolution-Host

Bingo is offline   Reply With Quote
Old 04/04/2014, 02:03 AM   #8
ChuckyBabe
Huge Clucker
 
ChuckyBabe's Avatar
 
Join Date: Aug 2013
Location: C:\Program Files\Rockstar Games\GTA San Andreas
Posts: 463
Reputation: 11
Default Re: [NGG EDIT] Help with this iAdminValue

Hell no,
NGG's highest admin lvl is 99999 and not 99998
__________________
ChuckyBabe is offline   Reply With Quote
Old 04/04/2014, 02:05 AM   #9
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 238
Default Re: [NGG EDIT] Help with this iAdminValue

Quote:
Originally Posted by ChuckyBabe View Post
Hell no,
NGG's highest admin lvl is 99999 and not 99998
It is! I know.

What you want it to be? 99998 +1 is 99999 and i've stated that >= 99998 that means if he is 99999.

What you want now?
__________________
Host SAMP with Evolution-Host

Bingo is offline   Reply With Quote
Old 04/04/2014, 02:38 AM   #10
ChristianIvann09
Banned
 
Join Date: Nov 2013
Location: (Pasay City) Manila,Philippines
Posts: 621
Reputation: 11
Default Re: Respuesta: [NGG EDIT] Help with this iAdminValue

Quote:
Originally Posted by [vTc]Patroool View Post
A'ight,

As you can see this >= 99998.

This means if player level is greater Тhan (>) 99998 he can use that command so to set him as community owner you need to set your admin level as 99998 in order to use this cmd.
I know LOL.

did you read my thread?

I want to change the iAdminValues stock changing the name of Community Owner to Server Owner. Community Director to Server Co Owner. i have the NGG edit i want to edit all features to modify thats why im asking your help here on "Where can i find the iAdminValues stock" so i can change the Admin Name levels
ChristianIvann09 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [EDIT]Fizz Tdm Edit (Added New features) [MK]Man_Deep Gamemode Scripts 24 26/06/2013 10:29 AM
Give me a tool to edit .dff files i want to edit a vehicle Commandos General 2 08/07/2011 10:33 AM
bot on GF edit? Darekfred Help Archive 2 17/11/2009 02:13 PM
What is gf edit? manunited1878 General 7 09/11/2009 11:20 PM


All times are GMT. The time now is 08:14 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.