Private Skins Help (2) sorry
#1

Hi guy's can u help me please i wanna save a private skin for me and others like for example
Код:
ifPlayerName(Is [BADBOY Player may spawn if the name is not [BADBOY] SetPlayerHealth(playerid,0);
Kills the Player and Makes him go back to spawn



Get what i mean?
Reply
#2

Do you mean:

pawn Код:
public OnPlayerSpawn(playerid)
{
   if(GetPlayerSkin(playerid) == IDofTheSkinYouWantToBePrivate)
   {
       new SkinName[MAX_PLAYER_NAME];
       GetPlayerName(playerid, SkinName, sizeof(SkinName));
       if(!(strcmp(SkinName, "[BADBOY]", false) == 0))
       {
          GameTextForPlayer(playerid, "You can't take this skin!", 2500, 3);
          ForceClassSelection(playerid);
          SetPlayerHealth(playerid, 0.0);
       }
   }
   return 1;
}
?

//Edit: Nobody could use it -- Correct now xD
Reply
#3

Yea but i don't want all the skins to be private only 1 i wanna choose do i put the ID of the skin somwhere?
Reply
#4

Look up your skin here: https://sampwiki.blast.hk/wiki/Skins:All
then replace: "IDofTheSkinYouWantToBePrivate" by the ID in the code I posted.
Reply
#5

I done it but when i spawned it only said the text "You can't use this skin" it didn't kill the player or spawn the player into class


i want it to be reserved for [BADBOY]
Reply
#6

This might help

https://sampwiki.blast.hk/wiki/How_to_pa..._protect_skins
Reply
#7

Thanks..
Reply
#8

Now it should be correct or make it like Naxix proposed xD ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)