Need scripting help
#3

Quote:
Originally Posted by x96664
Посмотреть сообщение
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 ?
This function only sends a message, it doesn't prevent the player from choosing the skin

EDIT: Didn't read your edited message, it works!!
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: 3 Guest(s)