[Help] Send Message To SWAT
#5

pawn Код:
forward MessaggioSwat(playerid);
pawn Код:
if(strcmp(cmdtext, "/911", true) == 0)
{
    new callingplayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, callingplayer, sizeof(callingplayer));
    format(string, sizeof(string), "%s need help.", callingplayer);
    SendClientMessageToAll(0xFFFF00AA, string);
    MessaggioSwat(playerid);

    return 1;
}
pawn Код:
public MessaggioSwat(playerid)
{
    new callingplayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, callingplayer, sizeof(callingplayer));

    new string[128];
    format(string, sizeof(string), "%s Need Help!", callingplayer);

    new name[MAX_PLAYER_NAME];

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GetPlayerName(i, name, sizeof(name));
            if(strcmp(name, "[sw]", true, 4) == 0)
            {
                GameTextForPlayer(i, string, 3000, 3);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Send Message To SWAT - by [SsC11]MAVERIK - 27.03.2010, 08:34
Re: [Help] Send Message To SWAT - by Sebago[X] - 27.03.2010, 08:43
Re: [Help] Send Message To SWAT - by [SsC11]MAVERIK - 27.03.2010, 08:51
Re: [Help] Send Message To SWAT - by jamesbond007 - 27.03.2010, 09:22
Re: [Help] Send Message To SWAT - by MadeMan - 27.03.2010, 09:29
Re: [Help] Send Message To SWAT - by [SsC11]MAVERIK - 27.03.2010, 09:32
Re: [Help] Send Message To SWAT - by [SsC11]MAVERIK - 28.03.2010, 09:41
Re: [Help] Send Message To SWAT - by MadeMan - 28.03.2010, 10:11
Re: [Help] Send Message To SWAT - by [SsC11]MAVERIK - 28.03.2010, 11:13
Re: [Help] Send Message To SWAT - by VirSpectorX - 28.03.2010, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)