Need scripting help
#2

Quote:
Originally Posted by 69
Посмотреть сообщение
- I would like to know how to restrict skins to players with 20+ score.
If I udnerstood you right you need this:
pawn Код:
if(GetPlayerSkin(playerid) == 0)
    {
        if(GetPlayerScore(playerid) < 20)
        {
            SendClientMessage(playerid,-1,"You need to have 20 score to play with this skin!");
            return 0;
        }
    }
It's not tested!
Edit: It should be added on
Код:
OnPlayerRequestSpawn
And you didn't tell is it of certain skins or its for all of them ?
Reply


Messages In This Thread
Need scripting help - by 69 - 02.11.2012, 19:46
Re: Need scripting help - by x96664 - 02.11.2012, 19:51
Re : Re: Need scripting help - by 69 - 02.11.2012, 19:57
Re: Re : Re: Need scripting help - by x96664 - 02.11.2012, 19:59
Re : Need scripting help - by 69 - 02.11.2012, 20:00
Re : Need scripting help - by 69 - 02.11.2012, 20:27

Forum Jump:


Users browsing this thread: 2 Guest(s)