I need help
#1

Hi there i need a way so that i can go /announce [Hi There]

all i nned is the command so that when i type that is gose into a word named text and dose the following ...


format( string, sizeof(string), "%s", text );
GameTextForAll( string, 5000, 3 );
Reply
#2

i think this cmd is in xtreme admin
Reply
#3

pawn Код:
dcmd_announce(playerid,params[])
{
  new textm[64];
  if(sscanf(params,"s",textm)) {
    SendClientMessage(playerid,GREEN,"[USAGE] /announce [TEXT]");
  }
  else {
    new mstring[128];
    format(mstring,sizeof(mstring),"[ANOUNCEMENT] %s",textm);
        GameTextForAll(mstring,5000,3);
  }
  return 1;
}
Reply
#4

im not useing dcmd im useing the cmdtest 1
Reply
#5

pawn Код:
if(strcmp(cmdtext, "/announce", true, 9) == 0)
{
    GameTextForAll(cmdtext[10], 5000, 3);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)