[NEED HELP] Making A Crash Command
#1

Hello, i need some help making a command like

pawn Код:
cmd:crash
and that sends the player something that will crash their game can it be done if so please help
Reply
#2

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/crash", true) == 0)
{
Kick(playerid);
return 1;
}
}

Hope i helped you
Reply
#3

Search next time

https://sampforum.blast.hk/showthread.php?tid=244358
Reply
#4

Crash the player

pawn Код:
CMD:crash(playerid, params[])
{
    new
        id;
    if(sscanf(params, "ud", id)) return SendClientMessage(playerid, -1, "USE: /crash [ID]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Player not connected.");
    GameTextForPlayer(id, "%%$#@1~555#",66666000, 6);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)