[Ajuda] Sistema de X1 Bugado
#5

Apaga tudo.

pawn Код:
new bool: InDuel[MAX_PLAYERS char];
public OnPlayerDeath(playerid, killerid, reason)
{
    if(InDuel{killerid} && InDuel{playerid}){
        static string[128],Nome[24];
        format(string, sizeof(string), "{FF8900}[-X1-] {FFB300}%s {FF8900}foi derrotado pelo {FFB300}%s {FF8900}no duelo X1!", (GetPlayerName(playerid, Nome, 24), Nome),  (GetPlayerName(killerid, Nome, 24), Nome)); SendClientMessageToAll(0xFF0000FF, string);
        InDuel{playerid} = false, InDuel{killerid} = false;
        return true;
    }

    // resto da callback
    return true;
}
// Comando:
        static i, contar;
        for(i = GetMaxPlayers(), contar = -1; !(i ^ 0); --i) if(InDuel{i}) contar ++;
        if(contar >= 1) return SendClientMessage(playerid, -1,"Jб tem dois jogadores fazendo duelo agora jovem");
        InDuel{playerid} = true;
Reply


Messages In This Thread
Sistema de X1 Bugado - by ReehSouza - 30.01.2014, 14:28
Re: Sistema de X1 Bugado - by ReehSouza - 01.02.2014, 12:06
Re : Sistema de X1 Bugado - by caption - 01.02.2014, 12:19
Re: Sistema de X1 Bugado - by ReehSouza - 01.02.2014, 22:22
Re: Sistema de X1 Bugado - by zSuYaNw - 01.02.2014, 23:07
Re: Sistema de X1 Bugado - by ReehSouza - 02.02.2014, 00:36
Re: Sistema de X1 Bugado - by Gii - 02.02.2014, 00:49
Re: Sistema de X1 Bugado - by ReehSouza - 02.02.2014, 01:49
Re: Sistema de X1 Bugado - by Gii - 02.02.2014, 01:49
Re: Sistema de X1 Bugado - by i7Core - 02.02.2014, 01:55

Forum Jump:


Users browsing this thread: 1 Guest(s)