SA-MP Forums Archive
Filterscript Request! Admin Duty/Admin Name! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscript Request! Admin Duty/Admin Name! (/showthread.php?tid=362848)



Filterscript Request! Admin Duty/Admin Name! - Jamal_Sparks - 25.07.2012

Hello! I've been looking for a filterscript that will allow admins to use /adminduty to go on admin duty. Also i would like to have a /adminname command, where an admin can set a seperate name that they will use while on admin duty. Then when they do /adminduty, they will be switched to that name. Also im looking for a vehicle storage system so players can spawn/despawn vehicles. Thanks!


Re: Filterscript Request! Admin Duty/Admin Name! - [KHK]Khalid - 25.07.2012

Requests go here.


Re: Filterscript Request! Admin Duty/Admin Name! - Alexis1999 - 25.07.2012

At Top
PHP код:
enum pInfo
{
AdminLevel,
AdminDuty,
}
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
ZCMD:

PHP код:
CMD:adminduty(playeridparams[]) 
{
if( 
PlayerInfo[playerid][AdminLevel] > )
{
PlayerInfo[playerid][AdminDuty]=1;
SetPlayerColor(playerid#FF0000);
}
else return 
0;
}
CMD:exampleadmincmd(playeridparams[]) 
{
if(( 
PlayerInfo[playerid][AdminLevel] > ) && ( PlayerInfo[playerid][AdminDuty] == )
{
// Your Command
}
else return 
0;

About the name thing you want, you must use a saving file include like y_ini