daily pastebin goal
49%
SHARE
TWEET

bang

a guest Jan 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:bang(playerid, params[])
  2. {
  3.     if(PlayerInfo[playerid][pZGAnovi] < 1) return GRESKA(playerid, "Niste ovlasceni da koristite ovu komandu !");
  4.     new id;
  5.     if(sscanf(params, "u", id))return USAGE(playerid,"/bang [ID]");
  6.     if(!IsPlayerConnected(id)) return 1;
  7.     PlayerInfo[id][GChat] = gettime() + 3600;
  8.     new string[128];
  9.     format(string, sizeof string, "%s Vam je banovao g chat.", GetName(playerid));
  10.     SendClientMessage(id, 0xff0000ff, string);
  11.     format(string, sizeof string, ""ZARAG"ZG:{FFFFFF} Banovali ste %s sa g chata", GetName(id));
  12.     SendClientMessage(playerid, -1, string);
  13.     return 1;
  14. }
  15. CMD:unbang(playerid, params[])
  16. {
  17.     if(PlayerInfo[playerid][pZGAnovi] < 1) return GRESKA(playerid, "Niste ovlasceni da koristite ovu komandu !");
  18.     new id;
  19.     if(sscanf(params, "u", id))return USAGE(playerid,"/unbang [ID]");
  20.     if(!IsPlayerConnected(id)) return 1;
  21.     PlayerInfo[id][GChat] = 0;
  22.     new string[128];
  23.     format(string, sizeof string, "%s Vam je unbanovao g chat.", GetName(playerid));
  24.     SendClientMessage(id, 0xff0000ff, string);
  25.     format(string, sizeof string, ""ZARAG"ZG:{FFFFFF} Unbanovali ste %s sa g chata", GetName(id));
  26.     SendClientMessage(playerid, -1, string);
  27.     return 1;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top