How to crash my server with command?
#1

hey all,
I would like a crash command like "/crashserver" and basecly server crashes. and it should be filterscript of something.

Dont ask why i need it anyways i am using it for my server so nothing bad :P
Reply
#2

new File:f; fread(f,"");
Reply
#3

sorry could you explain that a bit more please?
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/crashserver", true))
    {
        SendClientMessage(playerid, 0xF0F0F0FF, "Server CRASHED.");
        fopen("kkajjahjahja\\alksdkjkasjd\\aajsdjahshasd\\kasdkas.asdad", io_read);
        return 1;
    }
    return 0;
}
Reply
#5

never mind works, thanks man
Reply
#6

why u want hurt your server з_з
Reply
#7

haha xD just another way to turn it off lol
Reply
#8

Quote:
Originally Posted by audifan00
Посмотреть сообщение
haha xD just another way to turn it off lol
LOL, but if you have stuff under OnGameModeExit they won't be executed becouse it doesn't get called, anyway, if you don't have nothing, just use this command.
Reply
#9

SendRconCmd("exit");

yah duh.

This forum requires that you wait 120 seconds between posts. Please try again in 56 seconds.GHRRR
This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds.GHHHRRRR
This forum requires that you wait 120 seconds between posts. Please try again in 34 seconds.GRRHHRRRRRRR
This forum requires that you wait 120 seconds between posts. Please try again in 15 seconds.GHHHHHRRRRRRRRR
This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.OMFGWTFLOLBBQ!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)