Need example regarding progress bar
#1

Is there a tutorial which tells you about how to make a loading system like in CoD Original Game ones ?

So, when player connects, it automatically gives you a loading screen, then the gamemode runs normally back again.

OR someone could teach me ?

I'll appriciate anything.
Reply
#2

Why would you want to make a fake loading screen pretty lame in my view.
Reply
#3

To make the server more unique, mhmh ?
Reply
#4

There is a callback OnPlayerConnect where you can show your loading screen. Just directly show them? and if you want to delay it, add timers? then, OnPlayerRequestClass will be called.
Reply
#5

Have you ever played CoD before ?

I just wanna add more ''loading'', just after you've connected to my server.

That's all.
Reply
#6

Still, there is absolutely no point to have a fake loading screen.
Reply
#7

To create progress bars in-game, this is the filterscript: http://pastebin.com/P6iPFp9F

CreateProgressBar(x, y, width, height, color, max); - max should be something like 100. (create it in OnPlayerConnect for specific IDs.

ShowProgressBarForPlayer(playerid, barid); - Only use this in OnPlayerConnect, then set a timer to the player's id for like every 50 milliseconds to a callback that will SetProgressbarValue(barid, GetProgressBarValue(barid)+1); then if(GetProgressBarValue(barid) > 99) - destroys the progress bar

SetProgressBarValue(barid, value); - used to set the value 1 higher

GetProgressBarValue(barid); - used to get the value to set it 1 higher

UpdateProgressBar(barid, playerid=INVALID_PLAYER_ID); - use the playerid part for it to update to the player.
Reply
#8

Can you get me the UPDATED/LATEST of Progress.inc ?

I seems not to get the latest one.
Reply
#9

I've tried to get it myself recently, I believe it's been uncontinued. But search around, there may be another download somewhere.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)