help in spec
#8

pawn Код:
if (PRESSED( KEY_FIRE ))
    {
        if(isDead[playerid] == 1)
        {
            new stringn[128];
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    TogglePlayerSpectating(playerid, 1);
                    new name[MAX_PLAYER_NAME];
                    GetPlayerName(random(i), name, sizeof(name));
                    PlayerSpectatePlayer(playerid, random(i));
                    format(stringn, sizeof(stringn),"You are spectating %s", random(i));
                    SendClientMessage(playerid, -1, stringn);
                    new name1[MAX_PLAYER_NAME];
                    new stringxD[300];
                    GetPlayerName(playerid, name1, sizeof(name1));
                    format(stringxD, sizeof(stringxD),"%s is spectating you", name1);
                    SendClientMessage(random(i),-1,stringxD);
                   
                }
            }
        }
        return 1;
    }
btw, thanks
Reply


Messages In This Thread
help in spec - by Champ - 11.06.2014, 16:58
Re: help in spec - by doreto - 11.06.2014, 17:01
Re: help in spec - by Champ - 11.06.2014, 17:03
Re: help in spec - by xGamerFx - 11.06.2014, 17:13
Re: help in spec - by Champ - 11.06.2014, 17:22
Re: help in spec - by xGamerFx - 11.06.2014, 17:30
Re: help in spec - by Champ - 11.06.2014, 17:36
Re: help in spec - by xGamerFx - 11.06.2014, 17:40
Re: help in spec - by Champ - 11.06.2014, 17:42
Re: help in spec - by VenomMancer - 11.06.2014, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)