Textdraw randoms

Započeo Javier, Mart 29, 2010, 13:50:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ovako posto mi je velika zelja imati da mi je /news ono sto novinari pisu da mi je u textdrawu
i da su mi random poruke u textdrawu pa mozel mi ko napraviti TUT za to?

nastoe

Ako sam dobro shvatio ovo trazis...

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

//FORWARDI
forward text1(playerid);
forward text2(playerid);
forward text3(playerid);
forward text4(playerid);

//DEFINIRANJE
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");


Textdraw1 = TextDrawCreate(1.000000,433.000000, "Los Santos RPG");
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,0.499999,1.100000);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawSetOutline(Textdraw1,0);
TextDrawSetProportional(Textdraw1,1);
//textdraw 2
Textdraw2 = TextDrawCreate(1.000000,433.000000, "Za sve potrebne komande napisite /HELP");
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw2,1);
TextDrawLetterSize(Textdraw2,0.499999,1.100000);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw2,0);
TextDrawSetProportional(Textdraw2,1);
//textdraw 3
Textdraw3 = TextDrawCreate(1.000000,433.000000, "Ako trebate pomoc obratite se adminima na /report");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(Textdraw3,1);
TextDrawLetterSize(Textdraw3,0.499999,1.100000);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawSetOutline(Textdraw3,0);
TextDrawSetProportional(Textdraw3,1);
//textdraw 4
Textdraw4 = TextDrawCreate(1.000000,433.000000, "Ako se ne snalazite po gradu napisite /gps za sve vazne lokacije");
TextDrawAlignment(Textdraw4,0);
TextDrawBackgroundColor(Textdraw4,0x000000ff);
TextDrawFont(Textdraw4,1);
TextDrawLetterSize(Textdraw4,0.499999,1.100000);
TextDrawColor(Textdraw4,0xffffffff);
TextDrawSetOutline(Textdraw4,0);
TextDrawSetProportional(Textdraw4,1);
return 1;
}

#endif

public OnPlayerSpawn(playerid)
{
    SetTimerEx("text1", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
    TextDrawShowForPlayer(playerid, Textdraw1);
return 1;
}

public text1(playerid)
{
    SetTimerEx("text2", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw1);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw2);
    return 1;
}
public text2(playerid)
{
    SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw2);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw3);
    return 1;
}
public text3(playerid)
{
    SetTimerEx("text3", 30000, false, "d",playerid);// tekst ce se promijeniti svakih 30 sekundi
//SAKRI
    TextDrawHideForPlayer(playerid,Textdraw3);
    //POKAZI
    TextDrawShowForPlayer(playerid, Textdraw4);
    return 1;
}

tnx e hvala jel znas jos za /news komandu da mi budu

nastoe

Sta hoces da ti /news commanda radi, ja ti nevolim RP pa ti neznam te komande

uredu je
lock ovo
greska je bilo
sto si stavio //#define filterscript
a ono treba da bude sivo
Poslednja Izmena: Mart 29, 2010, 17:04:55 POSLE PODNE od ado

Å minker

meni ovo gore ovaj texdraw ne radi ubacio sam ga meÄ'u FS-e i u server cfg ali ne radi
zna mozda ko zasto to?
Poslednja Izmena: Mart 29, 2010, 21:50:28 POSLE PODNE od ٩(-̮̮̃•̃)۶ Šminker ٩(-̮̮̃•̃)۶

iYoko


jeste filter scripta samo nije definirana
imas gore pise ovako

//#define filterscript

Te //   moras pobrisat i onda compilati...

i raditi ce

ali ima jedan problem kada doÄ'e do zadnje nece dalje
Poslednja Izmena: Mart 30, 2010, 15:05:09 POSLE PODNE od GeForce Mallcolm