10.06.2012, 16:11
I been making a cmd so if the zombie kills you he can use /human
here my code
I put on playerdeath
Whats wrong with it?
it keeps saying unknown cmd.
here my code
pawn Code:
CMD:human(playerid, killerid, params[])
{
if(gTeam[playerid] == TEAM_ZOMBIE)
if(PlayerInfo[killerid][HumanMe] == 1)
{
gTeam[playerid] = TEAM_HUMAN;
SetPlayerHealth(playerid, 0);
GameTextForPlayer(playerid,"~g~Cured",3000,4);
}
PlayerInfo[killerid][HumanMe] = 0;
return 1;
}
pawn Code:
if(gTeam[killerid] == TEAM_ZOMBIE)
{
SendClientMessage(killerid, COLOR_RED, "You can now become human, use /human");
PlayerInfo[killerid][HumanMe] = 1;
}
it keeps saying unknown cmd.