Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ekazi(playerid, params[])
- {
- if( PlayerInfo[ playerid ][ xGameSage ] < 1 && PlayerInfo[ playerid ][ xAdmin ] < 1) return SendErrorMessage( playerid, "Niste u mogucnosti koristiti ovu komandu." );
- new result[128];
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new Float:plocx,Float:plocy,Float:plocz;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- if( sscanf( params, "s[128]", result ) ) return SendUsageMessage( playerid, "/ekazi [ text ]");
- format(string, sizeof(string), "Event | %s kaze:(( %s ))", sendername, result);
- foreach(Player,i)
- {
- if(IsPlayerInRangeOfPoint(i, 100.0,plocx, plocy, plocz))
- {
- SendClientMessage(i,COLOR_FLBLUE,string);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement