Whisper problem
#2

pawn Код:
public SendWHISPERMessage(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) == 1)
    SendClientMessage(i, COLOR_ORANGE ,string);
    }
    return 1;
}
CMD:w(playerid, params[])
{
    new Float:x, Float:y, Float:z, i;
    if(sscanf(params,"u",mystring)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"USAGE: {FFFFFF}/w [message]");

    GetPlayerName(playerid, pname, sizeof(pname));
    format(mystring, sizeof(mystring),"%s whispred: %s", pname, params);

    SetPlayerChatBubble(playerid, params, COLOR_ORANGE, 10.0, 10000);

    SendWHISPERMessage(COLOR_ORANGE, mystring);
     return 1;
}
Reply


Messages In This Thread
Whisper problem - by Bogdan1992 - 16.01.2012, 16:55
Re: Whisper problem - by rinori - 16.01.2012, 19:16
Re: Whisper problem - by Bogdan1992 - 16.01.2012, 20:26
Re: Whisper problem - by Tanush123 - 16.01.2012, 21:24
Re: Whisper problem - by Bogdan1992 - 16.01.2012, 21:36
Re: Whisper problem - by Tanush123 - 17.01.2012, 00:51
Re: Whisper problem - by 2KY - 17.01.2012, 01:17

Forum Jump:


Users browsing this thread: 1 Guest(s)