Errors and Warnings doing the local chat system
#7

pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME], string[144], Float: pX, Float: pY, Float: pZ;
    GetPlayerName(playerid, name, sizeof name);
    format(string, sizeof(string), "%s diz: %s", name, text);
    GetPlayerPos(playerid, pX, pY, pZ);
    foreach(new i: Player)
    {
        if(IsPlayerInRangeOfPoint(i, 6.0, pX, pY, pZ))
        {
            SendClientMessage(i, branco, string);
        }  
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)