SendClientMessageToAll bug
#8

it works. Something you did wrong.
pawn Код:
#include <a_samp>
#include <zcmd>

#define COLOR_GREY -1
#define COLOR_ROYALBLUE -1
#define COLOR_LIGHTBLUE -1
#define COLOR_GOLD -1

CMD:911(playerid, params[])
{
    //911 system
    if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /911 [Message and Location]");
    new sendername[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    SendClientMessage(playerid, COLOR_GOLD, "[INFO]You have just called 911. Please remain at your location and wait.");
    for(new i=0;i<MAX_PLAYERS;i++) {
        if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278  || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276) {
            SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
            SendClientMessage(i, COLOR_ROYALBLUE, "DISPATCH");
            SendClientMessage(i, COLOR_GREY, "Be advised, the following is a 911 call.");
            SendClientMessage(i, COLOR_GREY, "Units aviable please respond.");
            format(string, sizeof(string), "CALLER: %s  ~  INFO & LOCATION: %s", sendername, params);
            SendClientMessage(i, COLOR_GREY, string);
            SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
        }

    }
    return 1;
}
pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
SendClientMessageToAll bug - by Gooday - 10.01.2012, 12:25
Re: SendClientMessageToAll bug - by Konstantinos - 10.01.2012, 12:30
Re: SendClientMessageToAll bug - by Mikkel_Pedersen - 10.01.2012, 12:31
Re: SendClientMessageToAll bug - by Gooday - 10.01.2012, 12:34
Re: SendClientMessageToAll bug - by mitosking - 10.01.2012, 12:37
Re: SendClientMessageToAll bug - by Konstantinos - 10.01.2012, 12:40
Re: SendClientMessageToAll bug - by Gooday - 10.01.2012, 12:42
Re: SendClientMessageToAll bug - by Konstantinos - 10.01.2012, 12:46
Re: SendClientMessageToAll bug - by mitosking - 10.01.2012, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)