Please Help me with a Skin
#1

Hi all .I Want to know how to make a skin just for admin.If a normal player spawn with that skin to be kicked.
Reply
#2

Under
Код:
public OnPlayerRequestSpawn(playerid)
{
	return 1;
}
add This

Код:
public OnPlayerRequestSpawn(playerid)
{
  if (GetPlayerSkin(playerid) == 21) // <----- Change That To Your Skins id
  {
  if (!IsPlayerAdmin(playerid)) 
  {
  GameTextForPlayer(playerid, "~r~Only for admins!", 2000, 3);
  Kick(Playerid);
  return 0;//Stop spawning
  }
  }
  return 1;
}
This Should Work
Reply
#3

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if (GetPlayerSkin(playerid) == 21) // <-Change to your skin id
  {
  if (!IsPlayerAdmin(playerid))
  {
  GameTextForPlayer(playerid, "~r~Only for admins!", 2000, 3);
  SetPlayerHealth(playerid, 0);
  ForceClassSelection(playerid);
  return 0;
  }
  return 1;
  }
This is better. Forces the player to class selection instead of a kick.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)