[Pomoc]Novi

Započeo caupton
9. Maj 2011.
766
pregleda
8
postova
[Bp]D.N
5
Kingpin
9. Maj 2011.
Skripta koju koristim:BD |EDIT FG|
Detaljan opis problema:Kako da napravimo komandu kad igrac ukuca /novi da stigne administraciji gm-ovima da je igrac novi i da mu je potrebna pomoc
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

PS.HVALA PUNO ONOME KOJI POMOGNE
| Pacino
4
Made Man
9. Maj 2011.
evo ti, valjda ce ti moci, ovo je iz mog prijasnjeg GM-a

Quote
if (strcmp(cmd, "/novi", true) == 0)
{
new sendername;
new string;
 if(GetPVarInt(playerid, "Muted") == 1)
{
format(string, sizeof(string), " {FFFF80}Ne mozemo ispuniti ovaj zahtjev jer si usutkan! Preostalo vrijeme: {FF4444}%d sekundi(%d minuta)", GetPVarInt(playerid, "MuteVrijeme"), (GetPVarInt(playerid, "MuteVrijeme")/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
   {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "{0080FF}[ID: %d]%s {67B3FF}je novi igrac i treba mu pomoc!", playerid, sendername);
GBroadCast(0x00FF3DF1,string,1);
ABroadCast(0x00FF3DF1,string,1);
SendClientMessage(playerid, 0xB3FF00F1, "{C0C0C0}Poziv je poslan {67B3FF}GameMasterima.");
   }
   return 1;
}
Gangasta300
4
Enforcer
9. Maj 2011.
Dealer... wrote on May 9, 2011, 7:20 pm:
evo ti, valjda ce ti moci, ovo je iz mog prijasnjeg GM-a

Quote
if (strcmp(cmd, "/buygun", true) == 0)
{
new sendername;
new string;
  if(GetPVarInt(playerid, "Muted") == 1)
{
format(string, sizeof(string), " {FFFF80}Ne mozemo ispuniti ovaj zahtjev jer si usutkan! Preostalo vrijeme: {FF4444}%d sekundi(%d minuta)", GetPVarInt(playerid, "MuteVrijeme"), (GetPVarInt(playerid, "MuteVrijeme")/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "{0080FF}[ID: %d]%s {67B3FF}je novi igrac i treba mu pomoc!", playerid, sendername);
GBroadCast(0x00FF3DF1,string,1);
ABroadCast(0x00FF3DF1,string,1);
SendClientMessage(playerid, 0xB3FF00F1, "{C0C0C0}Poziv je poslan {67B3FF}GameMasterima.");
    }
    return 1;
}


buygun?
Viky
6
Legenda Foruma
9. Maj 2011.
Procitaj komandu -.-, ti si promijeni u /novi, on je editao cmd /buygun u ono sto ti trebas. Razmisljate mozgom.
| Pacino
4
Made Man
9. Maj 2011.
To sam prekopirao sa neke stranice, bilo mi mrsko pisati sve posto je kod mene bio zcmd...
Mr.Lowrey
5
Godfather
9. Maj 2011.
btw. ako mu radi ta komanda treba mu ABroadCast, ako ti treba dam ja iz mog moda
aleluja
5
Godfather
9. Maj 2011.
	if(strcmp(cmd, "/new", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s je novi igrac i zatrazio/la je pomoc.", sendername);
  ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, COLOR_GREEN, "Zahtjev je poslan Adminina i GameMastersima.");
    }
    return 1;
}
Mr.Lowrey
5
Godfather
9. Maj 2011.
Quote from May 9, 2011, 7:55 pm:
	if(strcmp(cmd, "/new", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s je novi igrac i zatrazio/la je pomoc.", sendername);
  ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, COLOR_GREEN, "Zahtjev je poslan Adminina i GameMastersima.");
    }
    return 1;
}
stavi to i ovo

na vrh:
forward ABroadCast(color,const string[],level);

na dno:
public ABroadCast(color,const string[],level)
{
  for(new i = 0;
  i < MAX_PLAYERS; i++)
  {
      if(IsPlayerConnected(i))
      {
        if (IsPlayerAdmin(i) || PlayerInfo >= 1)
        {
            SendClientMessage(i, color, string);
            printf("%s", string);
        }
      }
  }
  return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha