Unnamed
public text v1 · immutable#include <a_samp>
if(strcmp(cmd, "/notice", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new string[ 256 ];
new message[ 256 ];
message = strtok( cmdtext, idx );
format( string, sizeof( string ), "Admin NOTICE: %s", message );
SendClientMessageToAll( COLOR_YELLOW, string );
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You must be admin to use this command.");
return 1;
}
}