SA-MP Forums Archive
Need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help (/showthread.php?tid=585532)



Need help - gh0st116 - 14.08.2015

Hi.
Some cheat have function, which fast changes your nickname, so this player`s data is not saved.
Functions`s code:
Код:
setLocalPlayerName(param);      
restartGame();    
disconnect( 500 );    
cheat_state_text( "Rejoining in %d seconds...", set.rejoin_delay / 1000 );    
cheat_state->_generic.rejoinTick = GetTickCount();
How I can fix it?


Re: Need help - Weponz - 14.08.2015

Fix it how? Use a timer for restartGame(); and set w/e before it, then call the timer.