15.07.2016, 13:54
Код:
new bool:chatkill[MAX_PLAYERS]; //comando if(!strcmp(cmdtext, "/ChatKillExtra", true )) { chatkill[playerid] = false; return 1; } public OnPlayerDeath(playerid, killerid, reason) { if(chatkill[playerid] == true) { SendDeathMessage(killerid, playerid, reason); }else{ ShowExtraChatKill(playerid); } // se o boolean chatkill for true irб mostrar o chatkill //se for false irб executar a funзгo extra na stock sem mostrar o chatkill ... return 1; } stock ShowExtraChatKill(playerid) { //code return 1; }