16.12.2010, 14:24
How to make an "SendMessageToAdmins" include?
Example:
and :P what is the most easy way to script
sscanf, zcmd ,dcmd ,ect..cmd ^^
pawn Код:
#include <SendMessageToAdmins>
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sayhellotoadmins", cmdtext, true, 10) == 0)
{
if(SendMessageToAdmins)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s says: Hello admins :)",name);
SendClientMessageToAll(0xFFFF00AA, string);
return 1;
}
}
return 0;
}
