Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 20th, 2010 | Syntax: C++ | Size: 0.40 KB | Hits: 69 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. dcmd_announce(playerid,params[])
  2. {
  3.         new tmp[128],string[128];
  4.         if(sscanf(params,"s",tmp)) return SendClientMessage(playerid,colour,"USAGE: /announce <message>");
  5.         if(AccountInfo[playerid][aAdminLevel] < 1) return SendClientMessage(playerid,ANNOUNCE,"You have to be level 1 to do this!");
  6.     format(string,sizeof(string),"~r~~n~ ~n~ ~n~ ~n~ %s",strval(tmp));
  7.         GameTextForAll(string,5000,2);
  8.         return 1;
  9. }