Help with admin skin
#1

can you help me i got a gw server and i wanna make an admin skin i made it but if i wanna use it i have to log as RCON not as a normal admin pls help me here are the lines:
Код:
public OnPlayerSpawn(playerid)
{

	if(gTeam[playerid] == TEAM_ADMIN )
	{
 	if(!IsPlayerAdmin(playerid) == true)
		{
			ForceClassSelection(playerid);
			SetPlayerHealth(playerid, 0.0);
		}
	}
Reply
#2

I'm not sure that i understand you, but:
If you wanna to use your skin only if you are logged in as RCON admin:
Код:
//Under OnPlayerSpawn
if(IsPlayerAdmin(playerid))//If you are logged in as RCON
{
  SetPlayerSkin(playerid,ID);//Put your skin ID here
}
And if you want use your skin only as normal (not RCON) admin:
Код:
//Under OnPlayerSpawn
if(gTeam[playerid] == TEAM_ADMIN)//If you are an admin
{
  SetPlayerSkin(playerid,ID);//Put your skin ID here
}
Anyway, let me know if this isn't what do you need
Reply
#3

:P i got it solved by the way ty i used the Lethal Admin i used IsPlayerLadmin
ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)