[Tutorial] Annnounce admin system
#1

Hello,

Today we are going to learn has to create a system of announcement admin.

Sorry for my english, i'm french.

pawn Код:
dcmd_adan(playerid,params[]) // dcmd command
{
    new string[128]; // string
    if(!strlen(params)) // If there is a message has to announce (call params)
    {
        SendClientMessage(playerid,COLOR_USAGE,"USAGE: /adannounce (Message)"); // If settings is not present = SendClientMessage
        return 1; // return
    }
    format(string,sizeof(string),"%s",params); // %s an element of sscanf is which allows us to reveal the message (params)
    GameTextForAll(string,5000,0); // Send string in GameTextForAll
    return 1; // return
}
Thank you for the time and consideration.

Sorry for my english.
Reply
#2

Good tutorial for newbies.
Reply
#3

Good Job xD
Reply
#4

Thank you
Reply
#5

Its a good basic tutorial, but for the newbies you should tell them that they need dcmd.
Reply
#6

Why don't you just use params instead of creating a new string and formatting it?
pawn Код:
GameTextForAll(params,5000,0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)