[SOLVED] PlayerInfo
#5

Quote:
Originally Posted by Miokie*
pawn Код:
if (strcmp("/ra", cmdtext, true, 3) == 0)
    {
      if (PlayerInfo[playerid][Rank] <= 0) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You are not a Police Officer with the correct Rank.");
        if(GetPlayerTeam(playerid) != 8) return SendClientMessage(playerid,0xFF0000FF, "Identification Error - You are not a Police Officer with the correct Rank.");
    if(cmdtext[3] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /ra [text]");
    new playername[26];
    GetPlayerName(playerid, playername, 26);
    format(string, sizeof(string), "Radio Call from Officer %s:%s, over**", playername, cmdtext[3]);
    for(new i=0;i<MAX_PLAYERS;i++)
    { if(GetPlayerTeam(playerid) == 8) { SendClientMessage(i, 0x0000FFFF, string); } }
    return 1;
    }
Thank you for the help, this works perfect
Reply


Messages In This Thread
[SOLVED] PlayerInfo - by FreddeN - 04.11.2009, 18:35
Re: [UNSOLVED] PlayerInfo - by FreddeN - 04.11.2009, 20:18
Re: [UNSOLVED] PlayerInfo - by miokie - 04.11.2009, 20:27
Re: [UNSOLVED] PlayerInfo - by mirkoiz - 04.11.2009, 20:30
Re: [UNSOLVED] PlayerInfo - by FreddeN - 04.11.2009, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)