Blocking skins
#7

Quote:
Originally Posted by Xdrime
Посмотреть сообщение
The pawno crash when i compile :/ using your code
Comment this line
PHP код:
if(!IsInvalidSkin(i)) continue; 
Still crashing ? The error doesn't come from here;
Anymore crashing ?
» Did you add some skin here :
PHP код:
stock IsInvalidSkin(skin)
{
  
#define    MAX_INVALID_SKINS   15
    
new invalidSkins[MAX_INVALID_SKINS] =
    {
        
// SET YOUR INVALID SKINS HEREEEEEE
        
2,3,6,4,5,9,8,// Example | Find skins id HERE : https://sampwiki.blast.hk/wiki/Skins:All...4.96353749
    
};
    for (new 
0MAX_INVALID_SKINSi++)
    {
        if (
skin == invalidskinSkins[i] || skin || skin <= 300 ) return true;
    }
    return 
false;

----------------------

By the way, show OnPlayerSpawn
Reply


Messages In This Thread
Blocking skins - by Xdrime - 24.05.2016, 15:52
Re: Blocking skins - by GTLS - 24.05.2016, 15:57
Re: Blocking skins - by Dayrion - 24.05.2016, 16:15
Re: Blocking skins - by Stinged - 24.05.2016, 16:55
Re: Blocking skins - by Xdrime - 24.05.2016, 17:53
Re: Blocking skins - by Sew_Sumi - 24.05.2016, 17:59
Re: Blocking skins - by Dayrion - 24.05.2016, 18:04
Re: Blocking skins - by Stinged - 24.05.2016, 18:08
Re: Blocking skins - by Xdrime - 24.05.2016, 18:09
Re: Blocking skins - by Xdrime - 24.05.2016, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)