Locking skins
#4

I would really recommend you to use ZCMD and Scanff for this.

A quick example of the Command part:

pawn Код:
#include <zcmd>
#include <sscanf>

CMD:unlock(playerid, params[])
{
    new password[35];
    if(scanf(params, "s", password)) return SendClientMessage(playerid, 0x00FF0000, "wrong password!");
    else
    {
            if(!strcmp(password, "YOUR_PASSWORD") == 0)
            {
                    Locked[playerid] = 0;
            }
            {
            else
            {
                    Locked[playerid] = 1;
             }
       }
}
Hope this helps.
Reply


Messages In This Thread
Locking skins - by Jack- - 01.01.2011, 07:11
Re: Locking skins - by Haydz - 01.01.2011, 07:19
Re: Locking skins - by Stryke - 12.09.2011, 16:22
Re: Locking skins - by judothijs - 12.09.2011, 16:41
Re: Locking skins - by DRIFT_HUNTER - 12.09.2011, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)