restricted skins problem. - 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)
+--- Thread: restricted skins problem. (
/showthread.php?tid=632767)
restricted skins problem. -
LazzyBoy - 18.04.2017
Fixed thank you , repped the helper.
Re: restricted skins problem. -
Inceptio - 19.04.2017
I don't know what is this supposed to do erm.
Re: restricted skins problem. -
LazzyBoy - 19.04.2017
I just need help to check if wroten id of skin is taken for a faction and if the players faction is same as skin restriction
Re: restricted skins problem. -
Marricio - 19.04.2017
Quote:
Originally Posted by GangstaSunny.
Seriously?
The code u posted is shit. The command is just changing the skin and does nothing else.
Move back to basic
|
Seriously? What you just said is shit. That's
exactly what the command is meant to do. Smh, move back to basic.
Implement this to the command.
PHP код:
FactionLoop(o)// allows to loop throught all factions
{
if( PlayerInfo[playerid][playerteam] != o )
{
if( iSkin == FactionInfo[o][fskin1] || iSkin == FactionInfo[o][fskin2 )) // and list goes on if you have different skin variables
{
return SendClientMessage(playerid,-1,"This skin is taken by a faction, you can't use it.");
}
}
}