15.01.2014, 12:43
(
Последний раз редактировалось rakshith122; 15.01.2014 в 12:45.
Причина: God damn it. Failures D:
)
Nope..
Take a look at this..
Its a code for robbing BINCO, JUNIPER HOLLOW.
I need to make that dialog thing as a textdraw.
Take a look at this..
pawn Код:
if(getCheckpointType(playerid) == CP_BincoMain)
{
if(zones[current_zone][zone_name] == zones[161][zone_name])
{
if(JHBincoRobbedRecently >= 1)
{
SendClientMessage(playerid,COLOR_ERROR,"The Juniper Hill Binco has been robbed recently.");
return 1;
}
if(rrand <= 30)
{
SendClientMessage(playerid,COLOR_ERROR,"Juniper Hill Binco robbery failed.");
JHBincoRobbedRecently =320;
return 1;
}
JHBincoRobbedRecently =320;
RobbingJHBinco[playerid] =25;
IncreaseWantedLevel(playerid,4);
IncreasePlayerScore(playerid,1);
FROM HERE format(string,sizeof(string),"Robbing Binco.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingJHBinco[playerid]);
ShowPlayerDialog(playerid,DIALOG_BINCO,DIALOG_STYLE_MSGBOX,"{FF0000}Binco Robbery",string,"Ok","Cancel"); TO HERE
format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Juniper Hill Binco! Get To Binco and arrest the suspect.",PlayerName(playerid),playerid);
SendClientMessageToAllCops(string);
format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Binco ..",PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_RED,string);
format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Binco ..",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
return 1;
}
I need to make that dialog thing as a textdraw.