27.08.2013, 11:05
So you need to make a timmer..
Something like
forward toilet();
public OnGameModeInnit()
{
SetTimer("toilet",10000,0);
}
toilet = your timer.
10000 - Time in milliseconds (10 seconds).
0 - Non-repeating.
public Toilet()
{
SendClientMessageToAll(0xFFFF00AA,"10 seconds has passed and you need to go to toilet");
//Do all stuff here.. put some textdraw or something...
}
To kill timer
new toilet1;
public OnGameModeInnit()
{
toilet1 = SetTimer("toilet",10000,0);
}
and when you want to stop it put under your coude
KillTimer(timer1);
Something like
forward toilet();
public OnGameModeInnit()
{
SetTimer("toilet",10000,0);
}
toilet = your timer.
10000 - Time in milliseconds (10 seconds).
0 - Non-repeating.
public Toilet()
{
SendClientMessageToAll(0xFFFF00AA,"10 seconds has passed and you need to go to toilet");
//Do all stuff here.. put some textdraw or something...
}
To kill timer
new toilet1;
public OnGameModeInnit()
{
toilet1 = SetTimer("toilet",10000,0);
}
and when you want to stop it put under your coude
KillTimer(timer1);