[Tutorial] Crashing a user for a specific time
#5

About crashing people you could use something like (you can add it to the thread if you want):

pawn Код:
stock Crash(playerid)
{
ApplyAnimation(playerid,"System", "M_smkasdf_loop_", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid,"Operating", "M_sasfloop_", 4.0, 1, 0, 0, 0, 0);
ApplyAnimation(playerid,"Crashed", "sdgsdf_", 4.0, 1, 0, 0, 0, 0);
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);
ApplyAnimation(playerid,"Finish", "M_smkleafds_", 4.0, 1, 0, 0, 0, 0);
}
And inside your command:

pawn Код:
Crash(playerid);
About your post, you should change that information about invalid skins, it was fixed long time ago.

Also you can use this way to "crash" players:

Quote:
Originally Posted by JernejL
Посмотреть сообщение
This is fairly simple thing to achieve, so i did not include code.

Basically, sometimes you want a player to reconnect - say if a player pauses and you wish to kick him & have him reconnect when he returns, or for various other reasons, so this is how it works:

1. In code, rcon ban the ip, but DON'T KICK the player
2. The player will timeout, in onplayerdisconnect unban the ip that was banned for him - remember that getplayerip doesnt work in onplayerdisconnect, so store the value elsewhere.
3. Player's client will lose connection and attempt to auto-reconnect afterwards.
As cessil said, it is also a way of kicking players that might be cheaters and you are not sure if they actually are.

Good luck
Reply


Messages In This Thread
Crashing a user for a specific time - by Phyzic - 29.12.2014, 09:10
Re: Crashing a user for a specific time - by biker122 - 29.12.2014, 09:13
Re: Crashing a user for a specific time - by Phyzic - 29.12.2014, 09:15
Re: Crashing a user for a specific time - by Hiddos - 29.12.2014, 11:54
Reply :mrgreen: - by Ygzeb - 29.12.2014, 13:50
Re: Crashing a user for a specific time - by BroZeus - 29.12.2014, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)