Private Skins Help (2) sorry - 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: Private Skins Help (2) sorry (
/showthread.php?tid=138141)
Private Skins Help (2) sorry -
Jay. - 31.03.2010
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?
Re: Private Skins Help (2) sorry -
Last_Stand_Guardian - 31.03.2010
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
Re: Private Skins Help (2) sorry -
Jay. - 31.03.2010
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?
Re: Private Skins Help (2) sorry -
Last_Stand_Guardian - 31.03.2010
Look up your skin here:
https://sampwiki.blast.hk/wiki/Skins:All
then replace: "IDofTheSkinYouWantToBePrivate" by the ID in the code I posted.
Re: Private Skins Help (2) sorry -
Jay. - 31.03.2010
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]
Re: Private Skins Help (2) sorry -
Naxix - 31.03.2010
This might help
https://sampwiki.blast.hk/wiki/How_to_pa..._protect_skins
Re: Private Skins Help (2) sorry -
Jay. - 31.03.2010
Thanks..
Re: Private Skins Help (2) sorry -
Last_Stand_Guardian - 31.03.2010
Now it should be correct or make it like Naxix proposed xD ^^