Help with admin skin
#1

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
Reply
#2

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
Reply
#3

Lol, Thank you
Reply
#4

(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
Reply
#5

You dont even got an admin system?
Reply
#6

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
Reply
#7

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

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
Reply
#9

Replace it with "Kick(playerid)"
Reply
#10

yeah lol

SetPlayerHealth(playerid, 0);

Kick(playerid)

wiN ftw^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)