Admin Mode HELP PLEase
#1

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.
Reply
#2

https://sampwiki.blast.hk/wiki/Function:SetPlayerColor
Reply
#3

I didnt ask for that xD
Reply
#4

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
Reply
#5

Er tht was not much help, no offence.
Reply
#6

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
Reply
#7

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
Reply
#8

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.
Reply
#9

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
Reply
#10

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)