11.08.2012, 16:23
Just replace it by this.
it should looks like this.
pawn Код:
// command /heal
if(strcmp(#/heal, cmdtext)) return SetPlayerHealth(playerid, 100),SendClientMessage(playerid, 0x4D34B3FF,#You have healed yourself.);
//command /kill
if(strcmp(#/kill, cmdtext)) return SetPlayerHealth(playerid, 0),SendClientMessage(playerid, 0x4D34B3FF,#You have killed yourself.);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(#/kill, cmdtext)) return SetPlayerHealth(playerid, 0),SendClientMessage(playerid, 0x4D34B3FF,#You have killed yourself.);
if(strcmp(#/heal, cmdtext)) return SetPlayerHealth(playerid, 100),SendClientMessage(playerid, 0x4D34B3FF,#You have healed yourself.);
return 0;
}