"Trebam nešto" - tema

Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Ajd' da mi dadne ko sat gore u uglu textdraw :D

Trebam Boat Ownership nema veze kakav je(neka nema komandi napravit ću samo da ima to za kupnju lokaciju ću ja postavit i sve) samo da je dobar et nemora imati ovo gore što sam nabrojo...

Citat: ! Frankâ,,¢ poslato Avgust 09, 2011, 19:53:45 POSLE PODNE
Ajd' da mi dadne ko sat gore u uglu textdraw :D
//=====Includes================================================================================//
#include <a_samp>



//=====Defines=================================================================================//
//-----Colors----------------------------------------------------------------------------------//
#define BLACK 0x000000FF
#define WHITE 0xFFFFFFFF
#define YELLOW 0xFFFF00FF
#define RED 0xE60000FF

//-----TextDrawSetFormat(Text:text, const format[], {Float,_}:...)-----------------------------//
new FALSE = false;
#define TextDrawSetFormat(%0,%1) do{new _str[128]; format(_str,128,%1); TextDrawSetString(%0,_str);}while(FALSE)



//=====New variables===========================================================================//
//-----TextDraws-------------------------------------------------------------------------------//
new Text:TextdrawHour;
new Text:TextdrawMinute;
new Text:TextdrawSeconds;
new Text:TextdrawDay;
new Text:TextdrawMonth;

//-----Weather---------------------------------------------------------------------------------//
// You can change the numbers for different weathers. Look the wiki for all weathers.
new SpringWeather[8]  =  {1,10,11,14,17,23,29,33};
new SummerWeather[5]  =  {0,1,10,11,19};
new AutumnWeather[10] =  {7,8,9,12,15,16,17,25,30,32};
new WinterWeather[13] =  {1,4,5,7,8,9,12,15,17,20,25,27,30};



//=====Forwarding==============================================================================//
forward RemiX_Time_Tools();



//=====Callbacks==============================================================================//
public OnFilterScriptInit()
{
//Print
print("\n--------------------------------------");
print(" Remi-X Time-Tools V2.0 started up.");
print("--------------------------------------\n");

//News
new Year, Month, Day;
new ServerHour, ServerMinute, ServerSecond;
new summerrand = random(sizeof(SummerWeather));
new winterrand = random(sizeof(WinterWeather));
new springrand = random(sizeof(SpringWeather));
new autumnrand = random(sizeof(AutumnWeather));

//Gets
getdate(Year, Month, Day);
gettime(ServerHour, ServerMinute, ServerSecond);


CreateRXTT();

switch(Month)
{
    case 1:{
TextDrawSetString(TextdrawMonth, " January");
SetWeather(WinterWeather[winterrand]);
}

    case 2:{
TextDrawSetString(TextdrawMonth, " February");
SetWeather(WinterWeather[winterrand]);
}

    case 3:{
TextDrawSetString(TextdrawMonth, " March");
if(Day <21){SetWeather(WinterWeather[winterrand]);}
else{SetWeather(SpringWeather[springrand]);}
}

    case 4:{
TextDrawSetString(TextdrawMonth, " April");
SetWeather(SpringWeather[springrand]);
}

    case 5:{
TextDrawSetString(TextdrawMonth, " May");
SetWeather(SpringWeather[springrand]);
}

    case 6:{
TextDrawSetString(TextdrawMonth, " June");
if(Day <21){SetWeather(SpringWeather[springrand]);}
else{SetWeather(SummerWeather[summerrand]);}
}

    case 7:{
TextDrawSetString(TextdrawMonth, " July");
SetWeather(SummerWeather[summerrand]);
}

    case 8:{
TextDrawSetString(TextdrawMonth, " August");
SetWeather(SummerWeather[summerrand]);
}

    case 9:{
TextDrawSetString(TextdrawMonth, " September");
if(Day <21){SetWeather(SummerWeather[summerrand]);}
else{SetWeather(AutumnWeather[autumnrand]);}
}

    case 10:{
TextDrawSetString(TextdrawMonth, " October");
SetWeather(AutumnWeather[autumnrand]);
}

    case 11:{
TextDrawSetString(TextdrawMonth, " November");
SetWeather(AutumnWeather[autumnrand]);
}

    case 12:{
TextDrawSetString(TextdrawMonth, " December");
if(Day <21){SetWeather(AutumnWeather[autumnrand]);}
else{SetWeather(WinterWeather[winterrand]);}
}
}

if(ServerHour == 22){SetWorldTime(22);} //Can't be different. I don't know why, but otherwise you get a atomic bomb weather.
else{SetWorldTime(ServerHour);}

//Timers
SetTimer("RemiX_Time_Tools", 1000, true);
return 1;
}

public OnFilterScriptExit()
{
DestroyRXTT();
return 1;
}

public OnPlayerConnect(playerid)
{
HideRXTT(playerid);
}

public OnPlayerRequestClass(playerid, classid)
{
HideRXTT(playerid);
return 1;
}

public OnPlayerSpawn(playerid)
{
ShowRXTT(playerid);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
HideRXTT(playerid);
return 1;
}



//=====Forwarding==============================================================================//
//=====Forwarding==============================================================================//
public RemiX_Time_Tools()
{
//News
new ServerHour, ServerMinute, ServerSecond;
new Year, Month, Day;
new summerrand = random(sizeof(SummerWeather));
new winterrand = random(sizeof(WinterWeather));
new springrand = random(sizeof(SpringWeather));
new autumnrand = random(sizeof(AutumnWeather));

//Gets
gettime(ServerHour,ServerMinute,ServerSecond);
getdate(Year, Month, Day);

//TextDraw Clock
TextDrawSetFormat(TextdrawHour, "%02d", ServerHour);
TextDrawSetFormat(TextdrawMinute, ":%02d", ServerMinute);
TextDrawSetFormat(TextdrawSeconds, ":%02d", ServerSecond);
for(new i = 0; i < GetMaxPlayers(); i++){SetPlayerTime(i, ServerHour, ServerMinute);}

//TextDraw Day
TextDrawSetFormat(TextdrawDay, "%02d", Day);

//Weather Changer
if(ServerMinute == 0 && ServerSecond == 1) //When a new hour starts. The one second is to prevent a bug.
{


switch(Month)
{
    case 1:{
TextDrawSetString(TextdrawMonth, " January");
SetWeather(WinterWeather[winterrand]);
}

    case 2:{
TextDrawSetString(TextdrawMonth, " February");
SetWeather(WinterWeather[winterrand]);
}
   
    case 3:{
TextDrawSetString(TextdrawMonth, " March");
if(Day <21){SetWeather(WinterWeather[winterrand]);}
else{SetWeather(SpringWeather[springrand]);}
}
   
    case 4:{
TextDrawSetString(TextdrawMonth, " April");
SetWeather(SpringWeather[springrand]);
}
   
    case 5:{
TextDrawSetString(TextdrawMonth, " May");
SetWeather(SpringWeather[springrand]);
}
   
    case 6:{
TextDrawSetString(TextdrawMonth, " June");
if(Day <21){SetWeather(SpringWeather[springrand]);}
else{SetWeather(SummerWeather[summerrand]);}
}
   
    case 7:{
TextDrawSetString(TextdrawMonth, " July");
SetWeather(SummerWeather[summerrand]);
}
   
    case 8:{
TextDrawSetString(TextdrawMonth, " August");
SetWeather(SummerWeather[summerrand]);
}
   
    case 9:{
TextDrawSetString(TextdrawMonth, " September");
if(Day <21){SetWeather(SummerWeather[summerrand]);}
else{SetWeather(AutumnWeather[autumnrand]);}
}
   
    case 10:{
TextDrawSetString(TextdrawMonth, " October");
SetWeather(AutumnWeather[autumnrand]);
}
   
    case 11:{
TextDrawSetString(TextdrawMonth, " November");
SetWeather(AutumnWeather[autumnrand]);
}
   
    case 12:{
TextDrawSetString(TextdrawMonth, " December");
if(Day <21){SetWeather(AutumnWeather[autumnrand]);}
else{SetWeather(WinterWeather[winterrand]);}
}
}
if(ServerHour == 22){SetWorldTime(22);}
else{SetWorldTime(ServerHour);}
}
return 1;
}

stock CreateRXTT()
{
    //Hours
TextdrawHour = TextDrawCreate(546.000000,22.000000,"--");
TextDrawAlignment(TextdrawHour,0);
TextDrawBackgroundColor(TextdrawHour,BLACK);
TextDrawFont(TextdrawHour,3);
TextDrawLetterSize(TextdrawHour,0.634,2.4);
TextDrawColor(TextdrawHour,WHITE);
TextDrawSetOutline(TextdrawHour,1);
TextDrawSetProportional(TextdrawHour,1);
TextDrawSetShadow(TextdrawHour,1);

//Minutes
TextdrawMinute = TextDrawCreate(570.200000,22.000000,"--");
TextDrawAlignment(TextdrawMinute,0);
TextDrawBackgroundColor(TextdrawMinute,BLACK);
TextDrawFont(TextdrawMinute,3);
TextDrawLetterSize(TextdrawMinute,0.634,2.4);
TextDrawColor(TextdrawMinute,WHITE);
TextDrawSetOutline(TextdrawMinute,1);
TextDrawSetProportional(TextdrawMinute,1);
TextDrawSetShadow(TextdrawMinute,1);

//Seconds
TextdrawSeconds = TextDrawCreate(606.500000,33.000000,"--");
TextDrawAlignment(TextdrawSeconds,0);
TextDrawBackgroundColor(TextdrawSeconds,BLACK);
TextDrawFont(TextdrawSeconds,3);
TextDrawLetterSize(TextdrawSeconds,0.3,1.0);
TextDrawColor(TextdrawSeconds,WHITE);
TextDrawSetOutline(TextdrawSeconds,1);
TextDrawSetProportional(TextdrawSeconds,1);
TextDrawSetShadow(TextdrawSeconds,1);

//Day
TextdrawDay = TextDrawCreate(500.000000,10.000000,"--");
TextDrawAlignment(TextdrawDay,0);
TextDrawBackgroundColor(TextdrawDay,BLACK);
TextDrawFont(TextdrawDay,3);
TextDrawLetterSize(TextdrawDay,0.44,1.2);
TextDrawColor(TextdrawDay,WHITE);
TextDrawSetOutline(TextdrawDay,1);
TextDrawSetProportional(TextdrawDay,1);
TextDrawSetShadow(TextdrawDay,1);

//Month
TextdrawMonth = TextDrawCreate(515.000000,10.000000,"---------");
TextDrawAlignment(TextdrawMonth,0);
TextDrawBackgroundColor(TextdrawMonth,BLACK);
TextDrawFont(TextdrawMonth,3);
TextDrawLetterSize(TextdrawMonth,0.44,1.2);
TextDrawColor(TextdrawMonth,WHITE);
TextDrawSetOutline(TextdrawMonth,1);
TextDrawSetProportional(TextdrawMonth,1);
TextDrawSetShadow(TextdrawMonth,1);
}

stock HideRXTT(playerid)
{
TextDrawHideForPlayer(playerid,TextdrawHour);
TextDrawHideForPlayer(playerid,TextdrawMinute);
TextDrawHideForPlayer(playerid,TextdrawSeconds);
TextDrawHideForPlayer(playerid,TextdrawDay);
TextDrawHideForPlayer(playerid,TextdrawMonth);
}

stock ShowRXTT(playerid)
{
TextDrawShowForPlayer(playerid,TextdrawHour);
TextDrawShowForPlayer(playerid,TextdrawMinute);
TextDrawShowForPlayer(playerid,TextdrawSeconds);
TextDrawShowForPlayer(playerid,TextdrawDay);
TextDrawShowForPlayer(playerid,TextdrawMonth);
}

stock DestroyRXTT()
{
TextDrawDestroy(TextdrawHour);
TextDrawDestroy(TextdrawMinute);
TextDrawDestroy(TextdrawSeconds);
TextDrawDestroy(TextdrawDay);
TextDrawDestroy(TextdrawMonth);
}

Evo ti FS udjes u pawno i ides new i sve to obrises i ovo zalepis i compile i u server.cfg dodas ime te FS...

â–º USKORO â—,,
•Reg/Log System [100%]•House System [80%]•Bizz System [50%] •Ownership system [90%] •Admin System [90%] •GM System [0%] •Stats System [100%] •Jail System [90%] •Job System [70%] •Event System [40%] •Bank System [60%] •Org/Mafije [35%] •Donator System [10%]
I najveci talenti gube se u neradu, zato nemoj traziti izgovor da ne znas nego naÄ'i resenje!

Citat: Dane poslato Avgust 10, 2011, 13:46:47 POSLE PODNE
Trebam Boat Ownership nema veze kakav je(neka nema komandi napravit ću samo da ima to za kupnju lokaciju ću ja postavit i sve) samo da je dobar et nemora imati ovo gore što sam nabrojo...

Uzmi si ivexov ownership i preuredi ga  :-[



Trebam....

â–ºpomoc   ;D

â–º Ovako, instalirao sam si junkbuster ali kada idem da prevedem ono sta pise ( s engleskog na hrvatski/srpski/bosanski )
nece da mi se spremi, ja prevedem idem save i sve spremim otvorim serv opet sve po engleski  :'(

â–º Hvala unapred za savku pomoc/savet  8)



www.ekvador-samp.in.rs

Trazim pomocnog skriptera i mappere !!! sve na Ekvador forumu ;)

BIGG RESPECT: System32 â–º jednostavno car, nema mu ravnog, rado pomaze, sve zna.... jednostavno car, nekuzim kako je tako pametan, ali drago mi je da je i da mi pomaze, HVALA ! ;)

Citat: Gospodin poslato Avgust 30, 2011, 12:24:24 POSLE PODNE
Nema veze sto ima hiljadu takvih stvari bitno je da se ljudi trude !!!
Točnoooooo, razmislite malo o ovome ;)

Treba mi [TuT] za posao sa Check Pointima...kao na GF sto ima kosac trave, cistac ulica i td...



Kad bih ponovo mogao da biram...al' nemozes da biras.
Zajebes jedan minus i ode ceo zadatak u kurac. Ceo fazon brate, nema druge sanse.


Trebam onu FS kad sjedaš u auto da ti piše koji je auto...Zaboravio sam kako se zove ta FS ako može iko da dadne...

Citat: Dane poslato Avgust 11, 2011, 12:12:35 POSLE PODNE
Trebam onu FS kad sjedaš u auto da ti piše koji je auto...Zaboravio sam kako se zove ta FS ako može iko da dadne...
Ovde mozes pogledati slike kako to izgleda: http://forum.sa-mp.com/showthread.php?t=133452
Evo skini http://solidfiles.com/d/4072795207a65468b5899cdcf6709b17/

Pozz ljudi trebam pomoc.
Znaci kako da napravim kad ukucam /gps izade mi ovo

//------------------gps
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 7894, DIALOG_STYLE_LIST, "GPS Sistem", "Poslovi\nBolnica\nBanka\nVijecnica\nProdaja Owner Vozila\nKupnja Owner vozila\n\nBar Za Bogate\nIskljuciti GPS", "Izaberi", "Odustani"); //dialog koji ce vam se pojaviti kada ukucate komandu
return 1;
}


i kad stisnem "poslovi" da mi izade nova lista.

Kako to napravit?
Respect: $--L84S--$, ναηιâ,,"â,,"α , BloodMaster , LuxZillo, Don_Sergio, ExtremePower, Gotti747, Gagi_

dragan12

Citat: [BM]Ï...ÊŸÑ,ıмαÑ,ε poslato Avgust 11, 2011, 21:22:50 POSLE PODNE
Pozz ljudi trebam pomoc.
Znaci kako da napravim kad ukucam /gps izade mi ovo

//------------------gps
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 7894, DIALOG_STYLE_LIST, "GPS Sistem", "Poslovi\nBolnica\nBanka\nVijecnica\nProdaja Owner Vozila\nKupnja Owner vozila\n\nBar Za Bogate\nIskljuciti GPS", "Izaberi", "Odustani"); //dialog koji ce vam se pojaviti kada ukucate komandu
return 1;
}


i kad stisnem "poslovi" da mi izade nova lista.

Kako to napravit?
Napravi dialog znaci ovako ides pod OnDialogResponse
if(dialogid == 7894)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog.....
}
case 1:
......
I tako sada redom sta se desava ako izabere taj red.
I onda isto napravis jos jedan dialog za poslove sa dialogid tim id od tog dialoga i onda tamo stavis da mu stavi CP.
Ako si me ista skontao.

Citat: Gagi_Corleone poslato Avgust 11, 2011, 21:26:02 POSLE PODNE
Citat: [BM]Ï...ÊŸÑ,ıмαÑ,ε poslato Avgust 11, 2011, 21:22:50 POSLE PODNE
Pozz ljudi trebam pomoc.
Znaci kako da napravim kad ukucam /gps izade mi ovo

//------------------gps
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 7894, DIALOG_STYLE_LIST, "GPS Sistem", "Poslovi\nBolnica\nBanka\nVijecnica\nProdaja Owner Vozila\nKupnja Owner vozila\n\nBar Za Bogate\nIskljuciti GPS", "Izaberi", "Odustani"); //dialog koji ce vam se pojaviti kada ukucate komandu
return 1;
}


i kad stisnem "poslovi" da mi izade nova lista.

Kako to napravit?
Napravi dialog znaci ovako ides pod OnDialogResponse
if(dialogid == 7894)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog.....
}
case 1:
......
I tako sada redom sta se desava ako izabere taj red.
I onda isto napravis jos jedan dialog za poslove sa dialogid tim id od tog dialoga i onda tamo stavis da mu stavi CP.
Ako si me ista skontao.
posto vidim da znas sta treba javit cu ti se u pm da nepisem ovdje...
Respect: $--L84S--$, ναηιâ,,"â,,"α , BloodMaster , LuxZillo, Don_Sergio, ExtremePower, Gotti747, Gagi_

Citat: Gospodin poslato Avgust 11, 2011, 12:16:22 POSLE PODNE
Citat: Dane poslato Avgust 11, 2011, 12:12:35 POSLE PODNE
Trebam onu FS kad sjedaš u auto da ti piše koji je auto...Zaboravio sam kako se zove ta FS ako može iko da dadne...
Ovde mozes pogledati slike kako to izgleda: http://forum.sa-mp.com/showthread.php?t=133452
Evo skini http://solidfiles.com/d/4072795207a65468b5899cdcf6709b17/

Fala car si to mi je trebalo...

Imal neko neku FS za Vikendice i Stanove ili da mi objasni kako to napravit?
Poslednja Izmena: Avgust 12, 2011, 14:13:13 POSLE PODNE od Dane

Citat: Dane poslato Avgust 12, 2011, 13:35:42 POSLE PODNE
Citat: Gospodin poslato Avgust 11, 2011, 12:16:22 POSLE PODNE
Citat: Dane poslato Avgust 11, 2011, 12:12:35 POSLE PODNE
Trebam onu FS kad sjedaš u auto da ti piše koji je auto...Zaboravio sam kako se zove ta FS ako može iko da dadne...
Ovde mozes pogledati slike kako to izgleda: http://forum.sa-mp.com/showthread.php?t=133452
Evo skini http://solidfiles.com/d/4072795207a65468b5899cdcf6709b17/

Fala car si to mi je trebalo...

Imal neko neku FS za Vikendice i Stanove ili da mi objasni kako to napravit?


pa radis slicno kao i kuce...ides po skripti i umjesto pHouse stavljas pStan i drukcije komande i to je to..
Vratio sam se ponovo ocekjute novi server...

makelele

moze ko pomoci,da mi da primjer sa SetPlayerDynamicCP,OnPlayerEnterDynamicCP...
hocu GPS sa tim ali nez gde kako ti pa ako moze pomoc

vlado_plavsic