SA-MP Forums Archive
Skin Lock - 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: Skin Lock (/showthread.php?tid=89227)



Skin Lock - Rabbayazza - 31.07.2009

Can someone give me a script to lock a skin, so that say, leader of Grove has the sweet skin and no one else can use it


Re: Skin Lock - MadeMan - 31.07.2009

pawn Код:
new Class[MAX_PLAYERS];

public OnPlayerRequestClass(playerid, classid)
{
    Class[playerid] = classid;
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    if(Class[playerid] == CLASSID) return 0;
    return 1;
}
This won't let player spawn with the classid you want.


Re: Skin Lock - Rabbayazza - 31.07.2009

Whats the point in that, I want it so that a certain player can spawn as that skin and no-one else can.


Re: Skin Lock - MadeMan - 31.07.2009

This is an example how to not let player spawn and this isn't Script Request Thread.