Message reservation help....
#1

pawn Код:
CMD:911(playerid,params[])
{
//911 system
        if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /911 [Message and Location]");
        new name[24],msg[128];
        new sendername[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(playerid,name,24);
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
        SendClientMessageToAll(COLOR_GREY, string);
        format(string, sizeof(string), "DISPATCH", sendername, params);
        SendClientMessageToAll(COLOR_ROYALBLUE, string);
        format(string, sizeof(string), "Be advised, the following is a 911 call.", sendername, params);
        SendClientMessageToAll(COLOR_GREY, string);
        format(string, sizeof(string), "Units aviable please respond.", sendername, params);
        SendClientMessageToAll(COLOR_GREY, string);
        format(string, sizeof(string), "CALLER: %s  ~  INFO & LOCATION: %s", sendername, params);
        SendClientMessageToAll(COLOR_GREY, string);
        format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
        SendClientMessageToAll(COLOR_GREY, string);
        for(new i=0;i<MAX_PLAYERS;i++)
        if(GetPlayerSkin(i) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 ||GetPlayerSkin(playerid) == 278  || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i, COLOR_GREY, msg);
        return 1;
}
How i can send the message JUST to the skins who are in the last line but let type to all the command? and how i can give a message when someone has send the message like "You called the 911"

+REP!
Reply


Messages In This Thread
Message reservation help.... - by Gooday - 15.12.2011, 16:10
Re: Message reservation help.... - by [MG]Dimi - 15.12.2011, 17:01
Re: Message reservation help.... - by Rob_Maate - 15.12.2011, 17:09
Re: Message reservation help.... - by Rob_Maate - 15.12.2011, 17:19
Re: Message reservation help.... - by Rob_Maate - 15.12.2011, 17:34
Re: Message reservation help.... - by sleepysnowflake - 15.12.2011, 17:57
Re: Message reservation help.... - by Rob_Maate - 15.12.2011, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)