Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==========================================[Xat global sapoha]==========================================//
- stock ChatProximo(playerid, text[])
- {
- new Float:chatx, Float:chaty, Float:chatz;
- GetPlayerPos(playerid, chatx, chaty, chatz);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInRangeOfPoint(i, 50.0, chatx, chaty, chatz))
- {
- new string[56];
- format(string, sizeof(string), "[ID: %d] (») Chat Próximo (») %s", playerid, text);
- SendPlayerMessageToPlayer(i, playerid, string);
- }
- }
- }
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement