Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. cmd:paneraha(playerid, params[])
  2. {
  3.         if(Player[playerid][AdminLevel] >= 0)
  4.         {
  5.             new id, amount, string[128];
  6.             if(sscanf(params, "ud", id, amount)) return SendClientMessage(playerid, WHITE, "KASUTUS: /paneraha [playerid] [summa]");
  7.             {
  8.                 format(string, sizeof(string), "AdmCmd: Admin %s on määranud  %s - $%d", RemoveUnderScore(playerid), RemoveUnderScore(id), amount);
  9.                 SendToAdmins(RED, string, 0);
  10.                 format(string, sizeof(string), "Admin %s andis sulle $%d.", RemoveUnderScore(playerid), amount);
  11.                 SendClientMessage(id, LIBLUE, string);
  12.                 Player[id][Money] += amount;
  13.                 }
  14.         }
  15.         else return SendClientMessage(playerid, GREY, AdminOnly);
  16.         return 1;
  17. }
  18. #endif