help with whisper
#1

im trying to make /w (whisper) but i always get player is not point of range while they are near
pawn Код:
COMMAND:w(playerid, params[])
{
    new id,string[128], text[64], Float:dpX, Float:dpY, Float:dpZ;
    if(sscanf(params, "s[64",string, text)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /w [text]");
    if (!IsPlayerInRangeOfPoint(id, 10, dpX, dpY, dpZ)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Nobody is in point of range!");
    GetPlayerName(playerid, string, sizeof(string));
    format(string, sizeof(string), "%s whispers: %s", string, text);
    SendClientMessage(id,0x10F441AA, string);
    return 1;
}
Reply


Messages In This Thread
help with whisper - by tanush - 09.03.2011, 00:26
Re: help with whisper - by JaTochNietDan - 09.03.2011, 00:33
Re: help with whisper - by tanush - 09.03.2011, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)