SA-MP Forums Archive
Help with PPC Trucking GM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help with PPC Trucking GM (/showthread.php?tid=388231)



Help with PPC Trucking GM - MatriXScoT - 28.10.2012

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


Re: Help with PPC Trucking GM - Laure - 28.10.2012

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.


Re: Help with PPC Trucking GM - shaniyal - 28.10.2012

or u can also modify it from the PPC_defines.


Re: Help with PPC Trucking GM - MatriXScoT - 31.10.2012

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


Re: Help with PPC Trucking GM - Mr.Anonymous - 31.10.2012

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.


Re: Help with PPC Trucking GM - Mr.Anonymous - 31.10.2012

And forgot to mention...



Re: Help with PPC Trucking GM - CrazyChoco - 31.10.2012

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