SA-MP Forums Archive
Admin Mode HELP PLEase - 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: Admin Mode HELP PLEase (/showthread.php?tid=343705)



Admin Mode HELP PLEase - JAMMIEISFTW - 18.05.2012

Im scripting in DCMD, and really i need this so bad...

Ok, if your gona help if u post code i dont want it to be for any rcon or admin system, just do it for normal players to do... Then i do the rest...

Basically i want it to do this.

An admin does /admode (adminmode)

And when they talk it says (In Red, i can sort colors) Admin:
And over their head it will say (In Lime Green, i can sort colors) On Duty Administrator

Just give me a little idea of how to do it, thanks.


Re: Admin Mode HELP PLEase - Moh_ - 18.05.2012

https://sampwiki.blast.hk/wiki/Function:SetPlayerColor


Re: Admin Mode HELP PLEase - JAMMIEISFTW - 18.05.2012

Quote:
Originally Posted by Moh_
Посмотреть сообщение
I didnt ask for that xD


Re: Admin Mode HELP PLEase - Moh_ - 18.05.2012

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
I didnt ask for that xD
oh lol
fail
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
good luck


Re: Admin Mode HELP PLEase - JAMMIEISFTW - 18.05.2012

Quote:
Originally Posted by Moh_
Посмотреть сообщение
Er tht was not much help, no offence.


Re: Admin Mode HELP PLEase - milanosie - 18.05.2012

This is my code for /adminduty:

pawn Код:
format(strn, sizeof(strn), "ADMIN DUTY - %s ", name);
                Update3DTextLabelText(NameTag[playerid],COLOR_RED,strn);
Just create the nametag with a string of " "...

AFter that set string


Re: Admin Mode HELP PLEase - JAMMIEISFTW - 18.05.2012

Quote:
Originally Posted by milanosie
Посмотреть сообщение
This is my code for /adminduty:

pawn Код:
format(strn, sizeof(strn), "ADMIN DUTY - %s ", name);
                Update3DTextLabelText(NameTag[playerid],COLOR_RED,strn);
Just create the nametag with a string of " "...

AFter that set string
Fail


Re: Admin Mode HELP PLEase - milanosie - 18.05.2012

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
Fail
Fail?

Excuse me but accordingly to what I done so far, and all you can say is fail because your stupid enough to think about my awnesr yourself, I don't think you have the right to call me a fail.

I showed you how to set a string for a 3dTextLabel, which is EXACTLY what you asked for.
Now shut up and let your brain work instead of calling people that are actually helping you a fail.


Re: Admin Mode HELP PLEase - miley1 - 18.05.2012

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
Fail
Those poeple try to help you , Go read the wiki before you complain , Milan Gave you something from his script you shouldt be happy , I think you just come here for a standart full Created [MCD] /adminduty , I suggest go create it yourself


Re: Admin Mode HELP PLEase - Ghazal - 29.10.2013

Код:
dcmd_adon(playerid,params[])
{
	#pragma unused params
	new string[128];
	if(InAdminMode[playerid] == 1)
	{
	    SendClientMessage(playerid,COLOR_ERROR,"You are already in admin mode.");
	    return 1;
	}
	if(IsSpawned[playerid] != 1)
	{
	    SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to go into admin mode.");
	    return 1;
	}
	for(new w=0; w<13; w++)
	{
		GetPlayerWeaponData(playerid,w,PlayerWeapon[playerid][w],PlayerAmmo[playerid][w]);
	}
	SendClientMessage(playerid,COLOR_ADMIN,"You are now in admin mode.");
	format(string, sizeof(string),"[ADMIN MODE]%s(%d) has gone to Admin Mode ,Don't shoot him. or be Warned.",PlayerName(playerid),playerid);
	SendClientMessageToAll(COLOR_ADMIN,string);
	InAdminMode[playerid] =1;
	SetPlayerHealth(playerid,100000000000);
    SetPlayerArmour(playerid,100);

	SetPlayerColor(playerid,COLOR_PINK);
	return 1;
}
Hope I Helped Visit My Server atncr.no-ip.org