07.08.2009, 17:14
Do you have -
Under your "OnPlayerCommandText(playerid, cmdtext[])" callback?
If you're not using strtok, try changing the
to
I would set it up like this.
pawn Код:
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
If you're not using strtok, try changing the
pawn Код:
if (strcmp(cmd, "/kill", true) == 0)
pawn Код:
if (strcmp(cmdtext, "/kill", true) == 0)
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;
}