need help!! please help how chage admin color - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help!! please help how chage admin color (
/showthread.php?tid=264972)
need help!! please help how chage admin color -
sampx - 28.06.2011
post delete by user.
Re: need help!! please help how chage admin color -
Shadoww5 - 28.06.2011
PHP код:
if(IsPlayerAdmin(playerid)) { SetPlayerColor(playerid, 0xFF00D8FF); }
Remark: Change IsPlayerAdmin for your admin variable.
Re: need help!! please help how chage admin color -
sampx - 29.06.2011
thanks man thx bro gracias
Re: need help!! please help how chage admin color -
sampx - 29.06.2011
were do i add it like under onplayertextcomman or were plz?
Re: need help!! please help how chage admin color -
dr.pepper - 29.06.2011
Do you want it on when an Admin Connects? here:
pawn Код:
public OnPlayerConnect(playerid) // Player Connection
{
if(IsPlayerAdmin(playerid)) // Checks if the Player is Admin
{
SetPlayerColor(playerid, 0xFF00D8FF); // Sets the Admin pink coloured
}
return 1;
}
Re: need help!! please help how chage admin color -
Shadoww5 - 29.06.2011
It depends on when you want this function to be called as dr.pepper said.
Re: need help!! please help how chage admin color -
sampx - 29.06.2011
i wan it like when a admin connect in server only
Re: need help!! please help how chage admin color -
=WoR=Varth - 29.06.2011
Then do what dr.pepper said.
@dr.pepper: Btw how can you logged as rcon admin while you just connected to server.
Re: need help!! please help how chage admin color -
sampx - 29.06.2011
yea but umm can it work for eny kind of admin?
Re: need help!! please help how chage admin color -
dr.pepper - 29.06.2011
Quote:
Originally Posted by varthshenon
Then do what dr.pepper said.
@dr.pepper: Btw how can you logged as rcon admin while you just connected to server.
|
Sorry, I was paying attention lolz.
@sampx just put the 'include' in your script of the admin system, and use the code that defines a Admin's level.
Edit: @varthshenon, you could've logged in with console.