Sending one message instead of 2
#2

pawn Code:
for(new i; i<MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i))
  {
    if(i != playerid)
    {
      ProxDetector(20.0, i, wstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    }
  }
}
Sends the proxdetector to everyone except the player that typed the command.

pawn Code:
if(strcmp(cmd, "/spec", true) == 0)
    {
      new playerid2;
      tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GREY, "[Usage] /spec [ID] to spectate a player.");
            return 1;
        }
        playerid2 = strval(tmp);
        new Pname[24];
        GetPlayerName(playerid2, Pname, 24)
        if(!strcmp(Pname, "perker", true)) return SendClientMessage(playerid, COLOR_RED, "FOOL!");
        if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
        {
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, playerid2);
        SetPlayerInterior(playerid,GetPlayerInterior(playerid2));
        }
        return 1;
    }
Reply


Messages In This Thread
Sending one message instead of 2 - by Perker12345 - 11.01.2010, 09:42
Re: Sending one message instead of 2 - by [HiC]TheKiller - 11.01.2010, 10:08
Re: Sending one message instead of 2 - by Perker12345 - 11.01.2010, 10:53
Re: Sending one message instead of 2 - by [HiC]TheKiller - 11.01.2010, 10:59
Re: Sending one message instead of 2 - by Perker12345 - 11.01.2010, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)