Help with PPC Trucking GM
#1

Ok, so i really want to change the admin names like Lv 1 admin is Moderator or what ever and i want to change it to Helper and also i want to have the online admins showing in the chat box something like this -
Код:
-----Online Admins-----
Admin
Admin
Admin
-----Online Admins-----
else if no online admins than
Код:
-----No Online Admins-----
PPC GM link here - http://forum.sa-mp.com/showthread.ph...light=trucking
Reply
#2

Create a stock of this however you can modify it to your own.
Код:
stock AdminName(playerid)
{
	new name[32];
	if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Junior Admin");
	else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "General Admin");
	else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Senior Admin");
	else if(PlayerInfo[playerid][pAdmin] == 6) format(name, sizeof(name), "Lead Admin");
	else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Head Admin");
	else if(PlayerInfo[playerid][pAdmin] == 1338) format(name, sizeof(name), "Server Owner");
	return name;
}
And
format(string, sizeof(string), "|_____Online Admins_____|");
SendClientMessage(playerid, COLOR_ORANGE, string);
If(PlayerInfo[playerid][pAdmin] >=1)
{
format(string, sizeof(string), " %s %s", AdminName(playerid), GetPlayerName(i));
SendClientMessage(playerid, COLOR_HCHAT, string);
}

If you get errors you should modify it on the basis of your script.
Reply
#3

or u can also modify it from the PPC_defines.
Reply
#4

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Create a stock of this however you can modify it to your own.
Код:
stock AdminName(playerid)
{
	new name[32];
	if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Junior Admin");
	else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "General Admin");
	else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Senior Admin");
	else if(PlayerInfo[playerid][pAdmin] == 6) format(name, sizeof(name), "Lead Admin");
	else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Head Admin");
	else if(PlayerInfo[playerid][pAdmin] == 1338) format(name, sizeof(name), "Server Owner");
	return name;
}
And
format(string, sizeof(string), "|_____Online Admins_____|");
SendClientMessage(playerid, COLOR_ORANGE, string);
If(PlayerInfo[playerid][pAdmin] >=1)
{
format(string, sizeof(string), " %s %s", AdminName(playerid), GetPlayerName(i));
SendClientMessage(playerid, COLOR_HCHAT, string);
}

If you get errors you should modify it on the basis of your script.
This hasn't helped me... But i'll give you a Rep for wasting time and helping noobs
Reply
#5

Quote:
Originally Posted by MatriXScoT
Посмотреть сообщение
This hasn't helped me... But i'll give you a Rep for wasting time and helping noobs
Goto pawno > include > PPC_Defines.

Find this...
pawn Код:
// Holds the admin-levelnames
new AdminLevelName[6][24] =
{
    {"Player"}, // Admin-level 0
    {"Moderator"}, // Admin-level 1
    {"Helper-admin"}, // Admin-level 2
    {"Admin"}, // Admin-level 3
    {"Head-admin"}, // Admin-level 4
    {"Owner-admin"} // Admin-level 5
};
And edit that names.
Reply
#6

And forgot to mention...
Reply
#7

I really wish that any topic Related to Scripting should be in the SCRIPTING SECTION. And server Related shall be here. http://r57.binhoster.com/wrong%20section.png
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)