[HELP] Locking Skins
#1

Hey, I just created a new server and i'm using the GTAF gamemode and the SeifAdmin filterscript. I have added a 'Admin' gang with the staff skin and am wondering how to lock that gang/skin just for logged in admins to be able to choose and use it, any ideas?

-Edit- I posted in wrong section D:, my bad.
Reply
#2

This have been asked and answered several times. Do a search for skin locking.

WeeDarr
Reply
#3

Couldn't find anything related with my script, can anyone help?
Reply
#4

Look at this code you need Password to use the Skin.

In Top oF script !
Код:
new IsRequestingSpawn[MAX_PLAYERS];
Under OnPlayerRequestClass(playerid, classid)
Код:
IsRequestingSpawn[playerid] = 0;
Under public OnPlayerRequestSpawn(playerid)

Код:
if(GetPlayerSkin(playerid) == 165) // <<=== Change 'SkinID' to the id of the locked skin
	{
  GameTextForPlayer(playerid, "~r~Enter Pass...", 3000, 3);
  IsRequestingSpawn[playerid] = 1;
  return 0;
	}
Under OnPlayerText Add This :

Код:
if(IsRequestingSpawn[playerid] == 1)
{
  if(strcmp(text, "Apple", true)==0) // <<<< Change This Password!!
  {
  SpawnPlayer(playerid);
  IsRequestingSpawn[playerid] = 0;
  return 0;
  }
  else
  {
  GameTextForPlayer(playerid, "~r~Wrong Pass!", 2000, 3);
  return 0;
  }
}
	return 1;
And That sould be It :P


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)