SA-MP Forums Archive
How can I change this back ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can I change this back ? (/showthread.php?tid=422601)



How can I change this back ? - master2466 - 14.03.2013

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;
			}



Re: How can I change this back ? - Patrick - 14.03.2013

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


Re: How can I change this back ? - master2466 - 14.03.2013

Thanks I'll try it out