[Ajuda] Sistema /tv
#3

Код:
CMD:tv(playerid, spect, params[])
{
    new
        id,
        bool:gSpectating[MAX_PLAYERS]; //ERRO Aqui

    if(sscanf(params, "u",id))
        return SendClientMessage(id,-1,"Use: /tv [id]");

    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID)
        return SendClientMessage(id, -1, "Este jogador nгo estб conectado");

    if(!gSpectating[playerid])
    {
        new name[MAX_PLAYER_NAME],string[50];
        GetPlayerName(id,name,MAX_PLAYER_NAME);
        format(string,sizeof(string),"Vocк Esta de Tv Em %s.",name);
        SendClientMessage(playerid,-1,string);
        TogglePlayerSpectating(id, 1);
        gSpectating[playerid] == true;
        return 1;
    }
    else
    {
        TogglePlayerSpectating(id, 0);
        gSpectating[playerid] == false;
        SendClientMessage(id,-1,"Vocк nгo estб mais observando o player.");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Sistema /tv - by JuniorTheDM - 28.06.2015, 04:34
Re: Sistema /tv - by SkullFire - 28.06.2015, 04:54
Re: Sistema /tv - by iTakelot - 28.06.2015, 05:00

Forum Jump:


Users browsing this thread: 3 Guest(s)