How to make a advertise command
#2

Code:
if(strcmp(cmd, "/ad", true) == 0)
    {
      new message[256];
      new playername[MAX_PLAYER_NAME];
      strmid(message, cmdtext, 3, strlen(cmdtext));
      GetPlayerName(playerid, playername, sizeof(playername));
      if(!strlen(message))
      {
      SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
      }
      else
      {
         format(string, sizeof(string), "{FFFFFF}[RadioZu]{F81414} %s {6EF83C}|Message sent by{B700FF} %s {F81414}(playerid:%d) pm me!",message, playername, playerid);
         printf(string);
         SendClientMessageToAll(0xADFF2FAA, string);
         GivePlayerMoney(playerid,-2000);
      }
      return 1;
    }
Reply


Messages In This Thread
How to make a advertise command - by Matej_ - 31.01.2011, 12:08
Re: How to make a advertise command - by Rock18 - 31.01.2011, 12:29
Re: How to make a advertise command - by THE_KNOWN - 31.01.2011, 12:31
Re: How to make a advertise command - by HyperZ - 31.01.2011, 12:32
Re: How to make a advertise command - by Matej_ - 31.01.2011, 13:52
Re: How to make a advertise command - by [03]Garsino - 31.01.2011, 13:54
Re: How to make a advertise command - by THE_KNOWN - 31.01.2011, 14:09

Forum Jump:


Users browsing this thread: 3 Guest(s)