Editing admins colour ( duty colour )
#1

Hello, i know i can just search for the colour but it would take long time as i see the colours has been repeating to alot other stuffs but what is the line so i can change the colour from DBLUE to RED ?
Reply
#2

Quote:
Originally Posted by Chivava
Hello, i know i can just search for the colour but it would take long time as i see the colours has been repeating to alot other stuffs but what is the line so i can change the colour from DBLUE to RED ?
wooot ? lol i don't really understand what is your problem man.
You can change all dark blue colors to red by changing the hexa color number in the defines...
For example :
pawn Код:
#define COLOR_DBLUE 0x000051AA
So just change that number to the red. Red is : 0xF60000AA
so it'd be

pawn Код:
#define COLOR_DBLUE 0xF60000AA
That's only when you're trying to change all darkblues to reds and you don't want to change all DBLUE in the script to COLOR_RED

Sorry if I didn't help you but I don't really know what's the problem
Reply
#3

I want to edit the admin duty colour from Dark Blue to Red BUT what line is it and so on ? what do i need to search for and edit ?
Reply
#4

Press CTRL+F in Pawno, then search for #define COLOR_DBLUE
Reply
#5

You might also wanna look for SetPlayerColor and change the color to what it sets.
Reply
#6

look
you can do this

dcmd_admincolor etc..dunno how is your system
or

Код:
if (strcmp("/admincolorON", cmdtext, true, 10) == 0)
	{
       SetPlayerColor(playerid,0xFF0000AA) // <------------ RED
		return 1;
	}
	return 0;
}
Then connect your admin sytem with this
Reply
#7

hey how you connect admins system and look what i got"

Quote:

C:\Users\GOTITA DE AMOR\Desktop\serverfix\filterscripts\AD.pwn(96) : error 001: expected token: ";", but found "return"
C:\Users\GOTITA DE AMOR\Desktop\serverfix\filterscripts\AD.pwn(96) : warning 217: loose indentation
C:\Users\GOTITA DE AMOR\Desktop\serverfix\filterscripts\AD.pwn(9 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

now i got this i fix other but loock at this

Quote:

C:\Users\GOTITA DE AMOR\Desktop\serverfix\filterscripts\AD.pwn(96) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

is done but it wont work for me look

my script it work i fix all error but what is going on look


Quote:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
#define COLOR_DBLUE 0xF60000AA
#define 0_A_d_m_i_n

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/aco", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000AA,"admin color on");
SetPlayerColor(playerid,0xFF0000AA);
return 1;
}
if (strcmp("/acoff", cmdtext, true, 10) == 0)
{
SetPlayerColor(playerid, 0xFFFFFFAA);
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

Reply
#8

Stop bumping old threads please, make a new thread if you'll ask a help.
Reply


Forum Jump:


Users browsing this thread: