/kill bug
#4

Do you have -
pawn Код:
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
Under your "OnPlayerCommandText(playerid, cmdtext[])" callback?

If you're not using strtok, try changing the
pawn Код:
if (strcmp(cmd, "/kill", true) == 0)
to
pawn Код:
if (strcmp(cmdtext, "/kill", true) == 0)
I would set it up like this.
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0)
{
    if(gPlayerLogged[playerid] != 1) return SendClientMessage(playerid, COLOR_GRAY, "[!] You are not logged in!");
    SendClientMessage(playerid, COLOR_RED, "You have fallen unconscious due to servere wounds!");
    InjuredSpawn[playerid] = 1;
    return 1;
}
Reply


Messages In This Thread
/kill bug - by Antonio [G-RP] - 07.08.2009, 16:23
Re: /kill bug - by Djiango - 07.08.2009, 16:34
Re: /kill bug - by Antonio [G-RP] - 07.08.2009, 17:00
Re: /kill bug - by Djiango - 07.08.2009, 17:14
Re: /kill bug - by Antonio [G-RP] - 07.08.2009, 17:17
Re: /kill bug - by Antonio [G-RP] - 07.08.2009, 17:18
Re: /kill bug - by Djiango - 07.08.2009, 17:25
Re: /kill bug - by Sergei - 07.08.2009, 17:26
Re: /kill bug - by Djiango - 07.08.2009, 17:31
Re: /kill bug - by Antonio [G-RP] - 07.08.2009, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)