Jump to content

Sistem Server News


StarRo
 Share

Recommended Posts

 

Buna ziua am revenit cu o comanda noua :

 

News-uri:

 

 

 // snews
new ServerNews[MAX_PLAYERS];
 
new Text:News1[MAX_PLAYERS];
new Text:News2[MAX_PLAYERS];
new Text:News3[MAX_PLAYERS];

Comanda de activare/dezactivare :

 

 

CMD:togservernews(playerid, params[])
{
if(assetVariables[2][aAssetValue] == 1)
{
if(IsPlayerConnected(playerid))
{
if (ServerNews[playerid] == 0)
{
ServerNews[playerid] = 1;
  TextDrawShowForPlayer(playerid, News1[playerid]);
TextDrawShowForPlayer(playerid, News2[playerid]);
TextDrawShowForPlayer(playerid, News3[playerid]);
SCM(playerid, COLOR_WHITE, "You have enabled the server news.");
}
else if (ServerNews[playerid] == 1)
{
TextDrawHideForPlayer(playerid, News1[playerid]);
TextDrawHideForPlayer(playerid, News2[playerid]);
TextDrawHideForPlayer(playerid, News3[playerid]);
ServerNews[playerid] = 0;
SCM(playerid, COLOR_WHITE, "You have disabled the server news.");
}
}
 
}
else SCM(playerid, -1,"Server news are offline!");
return 1;
}

Comanda de schimbare:

CMD:un(playerid, params[])
{
if(playerVariables[playerid][pAdminLevel] < 1 ) return 1;
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /un [news]");
if(assetVariables[2][aAssetValue] == 1)
{
for(new f = 0; f < MAX_PLAYERS; f++)
{
TextDrawSetString(News3[f], params);
if(ServerNews[f] == 1)
{
  TextDrawShowForPlayer(f, News1[f]);
TextDrawShowForPlayer(f, News2[f]);
TextDrawShowForPlayer(f, News3[f]);
}
}
   SendClientMessage(playerid, -1, "You have changed the server news!" );
}
else SCM(playerid, -1, "Server news are off!");
    return 1;
}

Textdraws:

TextDrawBackgroundColor(News1[f], 255);
TextDrawFont(News1[f], 1);
TextDrawLetterSize(News1[f], 0.500000, 1.400000);
TextDrawColor(News1[f], -1);
TextDrawSetOutline(News1[f], 0);
TextDrawSetProportional(News1[f], 1);
TextDrawSetShadow(News1[f], 1);
TextDrawUseBox(News1[f], 1);
TextDrawBoxColor(News1[f], 153);
TextDrawTextSize(News1[f], 641.000000, 0.000000);
 
News2[f] = TextDrawCreate(480.000000, 429.000000, "%s /Real-Gaming");
   TextDrawLetterSize(News2[f],0.250000, 2.000000);
   TextDrawAlignment(News2[f], 1);
   TextDrawColor(News2[f], -1);
   TextDrawSetShadow(News2[f], 0);
   TextDrawSetOutline(News2[f], 1);
   TextDrawBackgroundColor(News2[f], 255);
   TextDrawFont(News2[f], 2);
   TextDrawSetProportional(News2[f], 1);
 
News3[f] =TextDrawCreate(550.988403, 439.053312, "_");
TextDrawBackgroundColor(News3[f], 51);
TextDrawFont(News3[f], 3);
TextDrawLetterSize(News3[f], 0.447657, 1.745833);
TextDrawColor(News3[f], 8454088);
TextDrawSetOutline(News3[f], 1);
TextDrawSetProportional(News3[f], 1);
TextDrawSetShadow(News3[f], 0);
 

 
Unde arata blue.bugged.ro scrieti ori [ playerid ] legat ori simplu playerid daca se afla deja intr-o paranteza rotunda.

 

Tu ai facut comanda? Esti sigur ca tu ai facut-o?

Iesi frate acasa...

T/C @Arthur pls.

Edited by Un4m3d
Link to comment
Share on other sites

Aha... gm e-li*e nu e de aceasi parere...

* = k

Dau gm in care e aceasi comanda... lasa-te pls :(. Postezi degeaba aici, doar eu, L0K3D si Blaskowski si alti catva te puteau ajut. Dar pentru magaria asta... pare rau... pentru tine.

Edited by Un4m3d
Link to comment
Share on other sites

Minte de se rupe.. ala in nici un caz nu l-a facut el, e in GM-ul e-li.ke si in inca 10 gm-uri.. am gasit-o chiar eu acuma, dand un search prin gm-urile care le am in calculator.. Tu nu stii nici sa creezi o comanda, dar pe langa mai si postezi comenzi din care nu intelegi o boaba..

Link to comment
Share on other sites

Usor, usor, ca nu il inteleg. Deci, tu vrei sa zici ca tu ai facut server news-ul asta ? Iti explic eu, server news-ul asta nu e facut de tine, e luat din e-like, pe langa ca mai minti, nu mai pui nici creditele. Copile, asta e un sistem copy+paste, tu nu ai scris nici o boaba din ce e acolo. Macar, bine ca ai dat edit.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.