How to lock the 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 lock the skins ## (
/showthread.php?tid=159401)
How to lock the skins ## -
GangsTa_ - 13.07.2010
How to lock skins and unlock them with a command, only a few skins for example the cops??
I tried wikipedia but these tutorials ain't working. They lock all skins.
Re: How to lock the skins ## -
OmarEco - 13.07.2010
i make this topic already and you ca't do that (you can lock it by bpassword find it in
http://wiki.sa-mp.com )
Re: How to lock the skins ## -
Donny_k - 13.07.2010
pawn Код:
// global boolean
new
bool: bLocked = false;
public OnPlayerRequestClass( playerid, classid )
{
if ( bLocked )
{
switch ( classid )
{
case 1, 5, 7, 9 : // protect classes 1, 5, 7, 9
{
SendClientMessage( playerid, 0xffffffff, "Skin locked" );
return 0;
}
}
}
return 1;
}
All you need then is a command which toggles it:
pawn Код:
if ( strcmp( cmdtext, "/lock", 5, true ) == 0 ) bLocked = !bLocked;
Re: How to lock the skins ## -
GangsTa_ - 17.07.2010
How to unlock this shit?
Re: How to lock the skins ## -
GangsTa_ - 17.07.2010
Pls help, how to unlock that, I don't need a server freeze, I just need a password to protect ONLY a few skins;
Or atleast to let the admin to give the rights for some skins.