Robbing stores help
#1

i use this command in robbing stores
PHP код:
if(getCheckpointType(playerid) == CP_BurgerShotMain)
    {
        if(
zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
        {
            if(
GarciaBurgerShotRobbedRecently >= 1)
            {
                
SendClientMessage(playerid,COLOR_ERROR,"The Garcia Burger Shot has been robbed recently.");
                return 
1;
            }
            if(
rrand <= 30)
            {
                
SendClientMessage(playerid,COLOR_ERROR,"Garcia Burger Shot robbery failed.");
                
GarciaBurgerShotRobbedRecently =320;
                return 
1;
            }
            
GarciaBurgerShotRobbedRecently =320;
            
RobbingGarciaBurgerShot[playerid] =25;
            
IncreaseWantedLevel(playerid,4);
            
IncreasePlayerScore(playerid,1);
            
format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingGarciaBurgerShot[playerid]);
            
ShowPlayerDialog(playerid,DIALOG_BURGERSHOT,DIALOG_STYLE_MSGBOX,"{FF0000}Burger Shot Robbery",string,"Ok","Cancel");
            
format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Garcia Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
            
SendClientMessageToAllCops(string);
            
format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
            
SendClientMessageToAll(COLOR_RED,string);
            
format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
            
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
            return 
1;
        } 
so this appear while robbing


but i need it to appear as a text
Reply
#2

bump
Reply
#3

Give us your DIALOG_BURGERSHOT Dialog...
Reply
#4

i use /robstore then this appears

EDIT: and dialog burgershot is a define only
Reply
#5

Give me your dialog Named: DIALOG_BURGERSHOT
It is into your OnDialogResponse..
Reply
#6

when i search and use CTRL+F , nothing appear coz its not a dialog , this dialog only appear to make a time of robbery
Reply
#7

pawn Код:
if(getCheckpointType(playerid) == CP_BurgerShotMain)
    {
        if(zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
        {
            if(GarciaBurgerShotRobbedRecently >= 1)
            {
                SendClientMessage(playerid,COLOR_ERROR,"The Garcia Burger Shot has been robbed recently.");
                return 1;
            }
            if(rrand <= 30)
            {
                SendClientMessage(playerid,COLOR_ERROR,"Garcia Burger Shot robbery failed.");
                GarciaBurgerShotRobbedRecently =320;
                return 1;
            }
            GarciaBurgerShotRobbedRecently =320;
            RobbingGarciaBurgerShot[playerid] =25;
            IncreaseWantedLevel(playerid,4);
            IncreasePlayerScore(playerid,1);
            format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingGarciaBurgerShot[playerid]);
            SendClientMessage(playerid, -1, "{FF0000}___Burger Shot Robbery____");
            SendClientMessage(playerid, -1, string);

            format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Garcia Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
            SendClientMessageToAllCops(string);

            format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
            SendClientMessageToAll(COLOR_RED,string);

            format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
            return 1;
        }
Reply
#8

you made it in SendClientMessage , I need it to be a Text in the screen
Reply
#9

Quote:
Originally Posted by nor15
Посмотреть сообщение
you made it in SendClientMessage , I need it to be a Text in the screen
yes that what I thought, what do you mean by "Text"?, TextDraw? or what
Reply
#10

I think he want to say Gametext
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)