help about dialog
#1

How to create input dialog when i type /buyskin
example
ShowPlayerDialog(playerid,DIALOG_BUYSKIN, DIALOG_STYLE_INPUT, "Buyskin", "Enter your Skin ID Below", "Buy", "Cancel");
on this script ?
pawn Код:
CMD:buyskin(playerid,params[]) {
    if(PlayerInfo[playerid][LoggedIn] == 1)
    if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /buyskin [skinid]");
    if(!IsAtBinco(playerid)) {
        SendClientMessage(playerid, COLOR_BRIGHTRED, "You need on Binco to bought skin");
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /buyskin [skinid]");
        return 1;
    }
    if(GetPlayerMoney(playerid) <25000) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You need $25.000 To buy skin");
    GivePlayerMoney(playerid, -25000);
        new string[128], SkinID = strval(params);
        if((SkinID == 0)||(SkinID == 7)||(SkinID >= 9 && SkinID <= 41)||(SkinID >= 43 && SkinID <= 64)||(SkinID >= 66 && SkinID <= 73)||(SkinID >= 75 && SkinID <= 85)||(SkinID >= 87 && SkinID <= 118)||(SkinID >= 120 && SkinID <= 148)||(SkinID >= 150 && SkinID <= 207)||(SkinID >= 209 && SkinID <= 264)||(SkinID >= 274 && SkinID <= 288)||(SkinID >= 290 && SkinID <= 299))
        {
            dUserSetINT(PlayerName2(playerid)).("FavSkin",SkinID);
            format(string, sizeof(string), "You has bought skin (ID %d)",SkinID);
            SendClientMessage(playerid,green,string);
            SendClientMessage(playerid,lightblue,"[INFO]: /useskin for use your skin");
            dUserSetINT(PlayerName2(playerid)).("UseSkin",1);
            return 1;
//          return CMDMessageToAdmins(playerid,"SAVESKIN");
    }
    else return SendClientMessage(playerid, green, "ERROR: Invalid Skin ID");
 }
Thanks
Rep++ for who can helped .
Reply


Messages In This Thread
help about dialog - by [IND]Crazy - 31.03.2014, 09:38
Re: help about dialog - by RenovanZ - 31.03.2014, 09:46
Re: help about dialog - by ChandraLouis - 31.03.2014, 09:49
Re: help about dialog - by [IND]Crazy - 31.03.2014, 09:56
Re: help about dialog - by RenovanZ - 31.03.2014, 10:00
Re: help about dialog - by [IND]Crazy - 31.03.2014, 10:04
Re: help about dialog - by RenovanZ - 31.03.2014, 10:05
Re: help about dialog - by [IND]Crazy - 31.03.2014, 10:10
Re: help about dialog - by BroZeus - 31.03.2014, 10:24

Forum Jump:


Users browsing this thread: 3 Guest(s)