Guest User

Untitled

a guest
Sep 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.35 KB | None | 0 0
  1. stock SendLocalActionMessage(playerid, action[])
  2. {
  3.     new str[128];
  4.     new Float:x, Float:y, Float:z;
  5.     GetPlayerPos(playerid, x, y, z);
  6.     format(str, sizeof(str), "%s %s", GetPlayerCleanName(playerid), action);
  7.     for(new i; i < MAX_PLAYERS; i++)
  8.     {
  9.         if(IsPlayerInRangeOfPoint(i, 8, x, y, z) SendClientMessage(i, COLOR_RPMESSAGE, str);
  10.     }
  11.     return 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment