How to make it if your in a certain location
#6

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10.0, YOUR_X, YOUR_Y, YOUR_Z))
    {
        new string[128];
        format(string, sizeof(string), "%s Says: %s", sendername, text);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        return 0;
    }
    return 1;
}
Replace the YOUR_X, YOUR_Y, YOUR_Z with the co-ords you want.
This will send you a message what you said, but ONLY to you.
Reply


Messages In This Thread
How to make it if your in a certain location - by Torran - 13.03.2010, 13:14
Re: How to make it if your in a certain location - by Naxix - 13.03.2010, 15:42
Re: How to make it if your in a certain location - by Torran - 13.03.2010, 15:43
Re: How to make it if your in a certain location - by Naxix - 13.03.2010, 15:45
Re: How to make it if your in a certain location - by SloProKiller - 13.03.2010, 15:47
Re: How to make it if your in a certain location - by Dark_Kostas - 13.03.2010, 16:01

Forum Jump:


Users browsing this thread: 2 Guest(s)