Help with admin skin - 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: Help with admin skin (
/showthread.php?tid=138695)
Help with admin skin -
[SWA]FlameSWA - 02.04.2010
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);
}
}
Re: Help with admin skin -
Norck - 02.04.2010
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
Re: Help with admin skin -
[SWA]FlameSWA - 08.04.2010
:P i got it solved by the way ty i used the Lethal Admin i used IsPlayerLadmin
ty