[Pedido] evento
#10

Quote:
Originally Posted by Gutierrez_zikaloko
Посмотреть сообщение
dei uma olhada mas с tem o sistema de mata o chuck e vira o chuck, queria sу isso.
Vocк pode usar variбveis, veja:
pawn Код:
new bool:PaintBall[MAX_PLAYERS];
new KillsPaintBall[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    new str[128], killername[MAX_PLAYER_NAME];
    KillsPaintBall[killerid] = 0;
    if(PaintBall[playerid] == true)
    {
        SetPlayerPos(playerid, 0, 0, 0); //Pos do PaintBall
        if(PaintBall[killerid] == true)
        {
            KillsPaintBall[killerid] ++;
            if(KillsPaintBall[killerid] >= 10)
            {
                GetPlayerName(killerid, killername, sizeof(killername));
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(PaintBall[i] == true)
                    {
                        format(str, sizeof(str), "%s й o Chucl Norris! Jб matou 10 no PaintBall sem morrer!");
                        SendClientMessage(i, -1, str);
                    }
                }
            }
        }
    }
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/paintball", cmdtext, true, 10) == 0)
    {
        PaintBall[playerid] = true;
        SetPlayerPos(playerid, 0, 0, 0); //Pos do PaintBall
        SendClientMessage(playerid, -1, "Bem Vindo ao PaintBall");
        return 1;
    }
    return 0;
}
Espero ter ajudado .
Reply


Messages In This Thread
[Pedido] evento - by Gutierrez_zikaloko - 05.05.2012, 14:50
Re: [Pedido] evento - by 4LiSs0N - 05.05.2012, 14:57
Re: [Pedido] evento - by CidadeNovaRP - 05.05.2012, 15:11
Re: [Pedido] evento - by Gutierrez_zikaloko - 06.05.2012, 15:20
Re: [Pedido] evento - by CidadeNovaRP - 06.05.2012, 15:24
Re: [Pedido] evento - by Gutierrez_zikaloko - 06.05.2012, 15:38
Re: [Pedido] evento - by CidadeNovaRP - 06.05.2012, 15:40
Re: [Pedido] evento - by Gutierrez_zikaloko - 06.05.2012, 15:55
Re: [Pedido] evento - by zbt - 06.05.2012, 16:03
Re: [Pedido] evento - by CidadeNovaRP - 06.05.2012, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)