How can I change this back ?
#1

Hey, I'm still learning more but I can't figure this out..

When I rob in my server a dialog-box comes up with information about the robbery, the problem is the players can't shoot incase cops comes or anything while they're in the checkpoint so I want the timer for the robbery to just be on the screen.. how exactly do I change it :/?


Код:
	HospitalRobbedRecently =300;
				RobbingHospital[playerid] =25;
				IncreaseWantedLevel(playerid,4);
				IncreasePlayerScore(playerid,1);
				format(string,sizeof(string),"Robbing Hospital.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingHospital[playerid]);
				ShowPlayerDialog(playerid,DIALOG_HOSPITAL,DIALOG_STYLE_MSGBOX,"{FF0000}Hospital Robbery",string,"Ok","Cancel");

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

				format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the Hospital ..",pname,playerid);
				SendClientMessageToAll(COLOR_RED,string);

				format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the Hospital ..",pname,playerid);
				IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
				return 1;
			}
Reply
#2

you can use GameTextForPlayer or Textdraw. as the dialog won't close because there is a string runs that opens the dialog everysecond.
Reply
#3

Thanks I'll try it out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)