How to make locked skins - 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: How to make locked skins (
/showthread.php?tid=91700)
How to make locked skins -
Yanzl - 16.08.2009
Hello.
I want to make a player skin that only certian player or admin can use. Could someone help me with that.
Thanks.
Re: How to make locked skins -
James_Alex - 16.08.2009
yes easy
juste add a class with this skin
then on player request spawn check the skin id then if the player is admin
he can take else use "return 0;" to block his spawn
Re: How to make locked skins -
Yanzl - 16.08.2009
Ok, I have this:
Код:
public OnGameModeInit(){
yanzl = AddPlayerClass(165,1281.1615,-831.0143,83.1406,186.7324,46,0,17,50,0,0);
public OnPlayerRequestClass(playerid,classid){
if(classid==yanzl){
GameTextForPlayer(playerid,"~b~~h~Yanzl.",1000,3);
SetPlayerColor(playerid,ADMIN);}
What do I need to add so that skin will be ony avaiable for Yanzl?
Re: How to make locked skins -
Yanzl - 16.08.2009
Please help, I'm not that good with scripting.