27.01.2013, 19:58
i use this command in robbing stores
so this appear while robbing
but i need it to appear as a text
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;
}
but i need it to appear as a text