SA-MP Forums Archive
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=158524)



Help with admin skin - hab2ever - 10.07.2010

Hey guys

I want this

Only Admin can choose Skin: id23

Or player is not admin so can't choose

I want admin skin

So send me code please

Thanks.

Sorry for my bad english


Re: Help with admin skin - ViruZZzZ_ChiLLL - 10.07.2010

Uhhh... Maybe try this?
pawn Код:
public OnPlayerSpawn(playerid)
{
  new skin = GetPlayerSkin(playerid);
  if(skin == 23)
  {
   ForceClassSelection(playerid);
   SetPlayerHealth(playerid, 0);
  }
  return 1;
}
Well, its basically like that :P


Re: Help with admin skin - hab2ever - 10.07.2010

Lol, Thank you


Re: Help with admin skin - hab2ever - 10.07.2010

(Sorry for double post)

lol
Quote:

public OnPlayerSpawn(playerid)
{
new skin = GetPlayerSkin(playerid);
if(skin == 23)
{
ForceClassSelection(playerid);
SetPlayerHealth(playerid, 0);
}
return 1;
}

Hey it's only kill the player and it's not work for rcon admin too


Re: Help with admin skin - Mr187 - 10.07.2010

You dont even got an admin system?


Re: Help with admin skin - willsuckformoney - 10.07.2010

Quote:
Originally Posted by hab2ever
Посмотреть сообщение
(Sorry for double post)

lol


Hey it's only kill the player and it's not work for rcon admin too
lol @ fail here watch this...

http://www.youtube.com/watch?v=5y_J8M3_EZI

shows how to do it just when it shows the number 4 change that to your admin skin you want


Re: Help with admin skin - Hiddos - 10.07.2010

Obviously viruz's method won't work.
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
  if(GetPlayerSkin(playerid) == 23 && !IsPlayerAdmin(playerid))
  {
    //Bla Bla
    return 0;
  }
  return 1;
}



Re: Help with admin skin - willsuckformoney - 10.07.2010

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Obviously viruz's method won't work.
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
  if(GetPlayerSkin(playerid) == 23 && !IsPlayerAdmin(playerid))
  {
    //Bla Bla
    return 0;
  }
  return 1;
}
lol for fun where it says //bla bla make it for if player chooses it and isnt an admin get kicked xD


Re: Help with admin skin - Hiddos - 10.07.2010

Replace it with "Kick(playerid)"


Re: Help with admin skin - willsuckformoney - 10.07.2010

yeah lol

SetPlayerHealth(playerid, 0);

Kick(playerid)

wiN ftw^^