strings
#2

pawn Код:
CMD:buydrink(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 28, 498.7181,-19.5918,1000.6797)) {
        if(GetPlayerInterior(playerid) > 17) {
            new string[128]
            format(string, sizeof(string), "%s approaches the bar, slipping some cash out of his pocket and placing it on the bench", GetPlayerName(playerid);
            for(new i = 0; i != MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                    if(GetPlayerInterior(i) > 17) {
                        SendClientMessage(i,color,string);
                    }
                }
            }
            ShowPlayerDialog(playerid, DIALOGDRINKS, DIALOG_STYLE_LIST, "Hello, what can I get you today?","Smirnoff\nBombay\nGoon\nBeer\nRose\nWater\nSprunk","Buy drink","Cancel");
            return 1;
        }
    }
    return 0;
}
you mean that?
Reply


Messages In This Thread
strings - by Josh_Main - 24.06.2013, 09:51
Re: strings - by iJumbo - 24.06.2013, 09:59
Re: strings - by Josh_Main - 24.06.2013, 10:04
Re: strings - by iJumbo - 24.06.2013, 10:10

Forum Jump:


Users browsing this thread: 2 Guest(s)