22.07.2010, 06:16
Hello, I have some problem with my wepons day system. When i disconnect from the server and then rejoin my server the textdraw dosent show anymore.
Heres my code:
^ Ongamemodinit
timers:
What should i add on onplayerdisconnect to make this work? Or is there any other way? Help
Heres my code:
pawn Код:
SetTimer("RunningWeps", StartWepDay, false);
timers:
pawn Код:
public RunningWeps()
{
SetTimer("WalkingWeps", NextDay, false);
IsRunningWeps = 1;
IsWalkingWeps = 0;
TextDrawSetString(Textdraw8, "Running Weapons Day");
TextDrawShowForAll(Textdraw8);
}
public WalkingWeps()
{
SetTimer("RunningWeps", NextDay, false);
IsRunningWeps = 0;
IsWalkingWeps = 1;
TextDrawSetString(Textdraw8, "Walking Weapons Day");
TextDrawShowForAll(Textdraw8);
}