25.08.2014, 21:06
Hello,
Today we are going to learn has to create a system of announcement admin.
Sorry for my english, i'm french.
Thank you for the time and consideration.
Sorry for my english.
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
}
Sorry for my english.

