#1

how can i make a person have a ciggy in his hand?
and whine?
Reply
#2

Код:
if (strcmp(cmdtext, "/ciggy", true)==0){
	    SendClientMessage(playerid, 0x33AA33AA, "Now you can go smoke");
        ApplyAnimation(playerid,"JST_BUISNESS","smoke_01",4.1,0,1,1,1,1);
        return 1;
	}
Not sure about that do..
Reply
#3

Look here.
Reply
#4

this is my code
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Bar dialog","1. Wine\n 2.Cigarret\n 3.Health","Buy", "Cancel");
    return 1;
}
pawn Код:
switch(5) // Lookup the dialogid
    {
        case 1:
        {
            if(!response)
            {
                SendClientMessage(playerid, 0xFF0000FF, "You cancelled the bought");
                return 1; // We processed it
            }

            switch(listitem)
            {
                case 0:
                {
                    if(GetPlayerMoney(playerid) < 6500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 6500$");
                    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
                    SendClientMessage(playerid,0x1DE817FF,"Enjoy your beer");
                }
                case 1:
                {
                    if(GetPlayerMoney(playerid) < 9500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 9500$");
                    ApplyAnimation(playerid,"JST_BUISNESS","smoke_01",4.1,0,1,1,1,1);
                    SendClientMessage(playerid,0x1DE817FF,"Enjoy your ciggy");
                }
                case 2:
                {
                    if(GetPlayerMoney(playerid) < 10500) return SendClientMessage(playerid,0xFF0006FF,"ERROR:You dont have 10500$");
                    SetPlayerHealth(playerid,100);
                    SendClientMessage(playerid,0x1DE817FF,"Health restored");
                }
            }
        }
    }
i have more but its not related to this but none of the actions work it dosnt give anything to them
Reply
#5

jeez its just these two
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_WINE);

SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMO KE_CIGGY);
Reply
#6

nothin happens
even if i switch weapons

Reply
#7

look at my post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)