19.01.2011, 18:55
ok so is this corйct
Код:
new killedAHuman[MAX_PLAYERS];
OnPlayerDeath
Код:
if(infected[playerid] > 0 || team[killerid] == 2) { GetPlayerName(playerid, player,sizeof(player)); GetPlayerName(killerid, killer,sizeof(killer)); format(string,sizeof(string), "%s has been turned into a zombie by %s(zombie)", player, killer); killedAHuman[killerid] = true; }
the cmd
Код:
if(strcmp(cmd, "/human", true) ==0) { if(team[playerid] == 2) return SendClientMessage(playerid, YELLOW, "you must be human"); if(killedAHuman == true) { team[playerid] = 1; SendClientMessage(playerid,GREEN,"you turn to a human."); return 1; } else { SendClientMessage(playerid,GREEN,"you turn to a human."); return 1; } }