[NEED]/ad System Or CMD To Advertisment
#1

Hello, Any CMD or System For Advertisment?. I Very Need That For My Server.
If You Have Or You Know About That .
Please Post Ini Here!

Thanks
Reply
#2

This is not Scripting Request Thread.
Please post it on Scripting Request Thread.
Reply
#3

Lets make life easier

pawn Код:
COMMAND:ad(playerid, params[])
{
        new text;

    if(sscanf,params,"s[128]",text) return SendCLientMessage(playerid,color_blue,"/ad [text]");
   
    SendClientMessageToAll(colors_blue,"ads from %s: %s", pname, text); // use your format here
    return 1;
}
Reply
#4

pawn Код:
SendClientMessageToAll(colors_blue,"ads from %s: %s", pname, text);
In this part you must use format.
Reply
#5

warning 203: symbol is never used: "buyadmin"
Reply
#6

pawn Код:
CMD:announce(playerid, params[])
{
   
    if(IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, "You are not allowed to use this command");

    new text[64], time, style;
    if (sscanf(params, "iis[64]", style, time, text)) return
        SendClientMessage( playerid,"Usage: /announce <style[0-6]> <time in ms> <text>");

    if (strlen(text) > 64) return
        SendClientMessage(playerid,"Message too long please shorten it ");

    if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!");
   
    if (style < 0 || style > 6) return
        SendClientMessage(playerid,0x854900FF,"Invalid style");

    if (time > 20*1000) return
        SendClientMessage(playerid,"No longer than 20 seconds");

    GameTextForAll(text, time, style);
   
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)