Crashes (like anti crash)
#2

O.o nub, you have alot of options to crash:

firs you need strtok
https://sampwiki.blast.hk/wiki/Strtok
put this in public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
option 1:
pawn Код:
if(strcmp(cmd, "/crash", true) == 0)
    {
        new tmp[128];
        tmp = strtok(cmdtext, idx);
 
        if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /crash [playerid]");
 
        CreatePlayerObject(strval(tmp), 9999999, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
        return 1;
    }
pawn Код:
if(strcmp(cmd, "/crash", true) == 0)
    {
        new tmp[128];
        tmp = strtok(cmdtext, idx);
 
        if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /crash [playerid]");
 
        SetPlayerPos(strval(tmp), 99999999999.9, 999999999999.9, 9999999999999.9);
        return 1;
    }
Reply


Messages In This Thread
Crashes (like anti crash) - by nuriel8833 - 28.07.2009, 13:49
Re: Crashes (like anti crash) - by Daem - 28.07.2009, 13:55
Re: Crashes (like anti crash) - by nuriel8833 - 28.07.2009, 14:01
Re: Crashes (like anti crash) - by saiberfun - 28.07.2009, 14:13
Re: Crashes (like anti crash) - by nuriel8833 - 28.07.2009, 15:11
Re: Crashes (like anti crash) - by saiberfun - 28.07.2009, 15:14
Re: Crashes (like anti crash) - by nuriel8833 - 28.07.2009, 15:29
Re: Crashes (like anti crash) - by Serediucr - 28.07.2009, 15:47
Re: Crashes (like anti crash) - by [DFE]Roy - 28.07.2009, 15:52
Re: Crashes (like anti crash) - by nuriel8833 - 28.07.2009, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)