GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » Scripte und kleine Codes » Wait(time) » Druckansicht
N0rax, 26.05.2010, 20:50
Guten Abend,


hätte da eine Frage, und zwar gibt es eine verbesserte Version dessen Codes:

Code:
1
2
3
4
5
6
7
8
stock Wait(time)
{
new stamp = tickcount();
while (tickcount() - stamp < time)
{
}
return 1;
}


Dieser Code hat leider das schlimme daran, das der Server total laggt wenn man z.b. sowas bauen
möchte:

Code:
1
2
3
4
5
6
7
8
9
if (!strcmp("/count",cmdtext,true))
{
SendClientMessage(playerid,COLOR_RED,"2");
Wait(2000);
SendClientMessage(playerid,COLOR_RED,"1");
Wait(2000);
SendClientMessage(playerid,COLOR_RED,"Los");
return 1;
}


Gibts da was besseres?



Crex
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads