Advertisement
Diego_Rivera

Untitled

Oct 11th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. CMD:ekazi(playerid, params[])
  2. {
  3. if( PlayerInfo[ playerid ][ xGameSage ] < 1 && PlayerInfo[ playerid ][ xAdmin ] < 1) return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
  4. new result[128];
  5. new sendername[MAX_PLAYER_NAME];
  6. new string[128];
  7. GetPlayerName(playerid, sendername, sizeof(sendername));
  8. new Float:plocx,Float:plocy,Float:plocz;
  9. GetPlayerPos(playerid, plocx, plocy, plocz);
  10. if( sscanf( params, "s[128]", result ) ) return SendUsageMessage( playerid, "/ekazi [ text ]");
  11. format(string, sizeof(string), "Event | %s kaze:(( %s ))", sendername, result);
  12. foreach(Player,i)
  13. {
  14. if(IsPlayerInRangeOfPoint(i, 100.0,plocx, plocy, plocz))
  15. {
  16. SendClientMessage(i,COLOR_FLBLUE,string);
  17. }
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement