Question
#1

I am going to put all my textdraws in a filterscript. Now i have a gamemode which i want to be calling these textdraws,

How can i do this?
Reply
#2

Put the Textdraw in the gamemode.
I dont think that there is another way...

Oh, well! Maybe try to put them into an include.
Reply
#3

They need to be in a fs and i can call them in the gamemode, because 40% players are crashing =/
Reply
#4

You could have just asked me....
Anyway, I assume your talking about the cS server.

Create some new functions, like OnRoundEnd in the filterscript.
in your GM you can do something like this:

pawn Код:
//Some function that is called when the time is up
WinTeam = 1; // or some other var to make clear what team has won
CallRemoteFunction("OnRoundEnd", "%d", WinTeam);
In the FS:
pawn Код:
forward OnRoundEnd(amt);
public OnRoundEnd(amt)
{
 if(amt == 1)
  {
   // Show the textdraw for when team 1 wins here
   }
 else if(amt ==2)
   {
   //Show the textdraw for when team 2 wins here
   }
  return 1;
}
That's the basic idea.
(I hate it you can't use tab on forums. :<)
Reply
#5

Quote:
Originally Posted by FuTuRe`
They need to be in a fs and i can call them in the gamemode, because 40% players are crashing =/
Then I'm sure you didn't install them correctly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)