[FilterScript] [FS]-->TIME NEW DIALOG ITA-ENG<--- WORK 100% BY SERGIO-COSTA
#1

ADD ME ********
http://www.********.com/sergio.trif

SCREEN SERVER TIMEXP



ENG
REP?? AND COMMENT PLASE
Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("           TIMEXP BY SERGIOCOSTA              ");
	print("--------------------------------------\n");
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("          TIMEXP BY SERGIOCOSTA            ");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	return 1;
}

public OnGameModeExit()
{
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/timexp", cmdtext, true, 10) == 0)
    {
	    ShowPlayerDialog(playerid,480,DIALOG_STYLE_LIST,"MENU THE TIMEXP by SergioCosta 2012 FS","{00EFFF}0:00\n{00EFFF}01:00\n{00EFFF}02:00\n{00EFFF}03:00\n{00EFFF}04:00\n{00EFFF}05:00\n{00EFFF}06:00\n{00EFFF}07:00\n{00EFFF}08:00\n{00EFFF}09:00\n{00EFFF}10:00\n{00EFFF}11:00\n{00EFFF}12:00\n{EB0000}Next Time Page","Select","Close");
	    return 1;
    }
	return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 480)
	{
		if(response)
		{
			if(listitem==0)
			{
            SetPlayerTime(playerid,0,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 0:00");
			}
			if(listitem==1)
			{
            SetPlayerTime(playerid,1,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 1:00");
			}
			if(listitem==2)
			{
            SetPlayerTime(playerid,2,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 2:00");
			}
			if(listitem==3)
			{
            SetPlayerTime(playerid,3,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 3:00");
			}
			if(listitem==4)
			{
            SetPlayerTime(playerid,4,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 4:00");
			}
			if(listitem==5)
			{
            SetPlayerTime(playerid,5,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 5:00");
			}
			if(listitem==6)
			{
            SetPlayerTime(playerid,6,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 6:00");
			}
			if(listitem==7)
			{
            SetPlayerTime(playerid,7,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 7:00");
			}
			if(listitem==8)
			{
           	SetPlayerTime(playerid,8,0);
           	PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 8:00");
			}
			if(listitem==9)
			{
            SetPlayerTime(playerid,9,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 9:00");
			}
			if(listitem==10)
			{
            SetPlayerTime(playerid,10,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 10:00");
			}
			if(listitem==11)
			{
            SetPlayerTime(playerid,11,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 11:00");
			}
			if(listitem==12)
			{
            SetPlayerTime(playerid,12,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 12:00");
			}
			if(listitem==13)
            {
			ShowPlayerDialog(playerid,481,DIALOG_STYLE_LIST,"SECOND PART PAGE BY SERGIOCOSTA","{00EFFF}13:00\n{00EFFF}14:00\n{00EFFF}15:00\n{00EFFF}16:00\n{00EFFF}17:00\n{00EFFF}18:00\n{00EFFF}19:00\n{00EFFF}20:00\n{00EFFF}21:00\n{00EFFF}22:00\n{00EFFF}23:00","Select","Close");
			}
		}
		return 1;
	}
	if(dialogid == 481)
	{
		if(response)
		{
            if(listitem==0)
			{
            SetPlayerTime(playerid,13,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 13:00");
			}
			if(listitem==1)
			{
            SetPlayerTime(playerid,14,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 14:00");
			}
			if(listitem==2)
			{
            SetPlayerTime(playerid,15,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 15:00");
			}
			if(listitem==3)
			{
            SetPlayerTime(playerid,16,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 16:00");
			}
			if(listitem==4)
			{
            SetPlayerTime(playerid,17,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 17:00");
			}
			if(listitem==5)
			{
            SetPlayerTime(playerid,18,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 18:00");
			}
			if(listitem==6)
			{
            SetPlayerTime(playerid,19,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 19:00");
			}
			if(listitem==7)
			{
			SetPlayerTime(playerid,20,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 20:00");
			}
			if(listitem==8)
			{
			SetPlayerTime(playerid,21,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 21:00");
			}
			if(listitem==9)
			{
			SetPlayerTime(playerid,22,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 22:00");
			}
			if(listitem==10)
			{
			SetPlayerTime(playerid,23,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}You put your time 23:00");
   			}
		}
		return 1;
	}
    return 0;
}
ITA
Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("           TIMEXP BY SERGIOCOSTA              ");
	print("--------------------------------------\n");
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("          TIMEXP BY SERGIOCOSTA            ");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	return 1;
}

public OnGameModeExit()
{
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/timexp", cmdtext, true, 10) == 0)
    {
	    ShowPlayerDialog(playerid,480,DIALOG_STYLE_LIST,"MENU DELLE ORE PER IL SERVER by SergioCosta 2012 FS","{00EFFF}0:00\n{00EFFF}01:00\n{00EFFF}02:00\n{00EFFF}03:00\n{00EFFF}04:00\n{00EFFF}05:00\n{00EFFF}06:00\n{00EFFF}07:00\n{00EFFF}08:00\n{00EFFF}09:00\n{00EFFF}10:00\n{00EFFF}11:00\n{00EFFF}12:00\n{EB0000}PROSSIMA PAGINA ","Seleziona","Chiudi");
	    return 1;
    }
	return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 480)
	{
		if(response)
		{
			if(listitem==0)
			{
            SetPlayerTime(playerid,0,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 0:00");
			}
			if(listitem==1)
			{
            SetPlayerTime(playerid,1,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 1:00");
			}
			if(listitem==2)
			{
            SetPlayerTime(playerid,2,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 2:00");
			}
			if(listitem==3)
			{
            SetPlayerTime(playerid,3,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 3:00");
			}
			if(listitem==4)
			{
            SetPlayerTime(playerid,4,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 4:00");
			}
			if(listitem==5)
			{
            SetPlayerTime(playerid,5,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 5:00");
			}
			if(listitem==6)
			{
            SetPlayerTime(playerid,6,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 6:00");
			}
			if(listitem==7)
			{
            SetPlayerTime(playerid,7,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 7:00");
			}
			if(listitem==8)
			{
           	SetPlayerTime(playerid,8,0);
           	PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 8:00");
			}
			if(listitem==9)
			{
            SetPlayerTime(playerid,9,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 9:00");
			}
			if(listitem==10)
			{
            SetPlayerTime(playerid,10,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 10:00");
			}
			if(listitem==11)
			{
            SetPlayerTime(playerid,11,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 11:00");
			}
			if(listitem==12)
			{
            SetPlayerTime(playerid,12,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 12:00");
			}
			if(listitem==13)
            {
			ShowPlayerDialog(playerid,481,DIALOG_STYLE_LIST,"SECONDA PARTE BY SERGIOCOSTA","{00EFFF}13:00\n{00EFFF}14:00\n{00EFFF}15:00\n{00EFFF}16:00\n{00EFFF}17:00\n{00EFFF}18:00\n{00EFFF}19:00\n{00EFFF}20:00\n{00EFFF}21:00\n{00EFFF}22:00\n{00EFFF}23:00","Seleziona","Chiudi");
			}
		}
		return 1;
	}
	if(dialogid == 481)
	{
		if(response)
		{
            if(listitem==0)
			{
            SetPlayerTime(playerid,13,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 13:00");
			}
			if(listitem==1)
			{
            SetPlayerTime(playerid,14,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 14:00");
			}
			if(listitem==2)
			{
            SetPlayerTime(playerid,15,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 15:00");
			}
			if(listitem==3)
			{
            SetPlayerTime(playerid,16,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 16:00");
			}
			if(listitem==4)
			{
            SetPlayerTime(playerid,17,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 17:00");
			}
			if(listitem==5)
			{
            SetPlayerTime(playerid,18,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 18:00");
			}
			if(listitem==6)
			{
            SetPlayerTime(playerid,19,0);
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 19:00");
			}
			if(listitem==7)
			{
			SetPlayerTime(playerid,20,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 20:00");
			}
			if(listitem==8)
			{
			SetPlayerTime(playerid,21,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 21:00");
			}
			if(listitem==9)
			{
			SetPlayerTime(playerid,22,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 22:00");
			}
			if(listitem==10)
			{
			SetPlayerTime(playerid,23,0);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x0000FFAA,"Server: {00FFFF}tu hai impostato l'ora su 23:00");
   			}
		}
		return 1;
	}
    return 0;
}
Reply
#2

ma ti senti figo a pubblicare queste perdite di tempo?!
Reply
#3

NN E PERDITA ._." TNT PERCHи MI STAVO ANNOIANDO ALLORA STO CREANDO I FILTERSCRIPT -.-" !!! >.< PROBLEMI?
Reply
#4

secondo ti lascio perdere BIMBOMINKIA! STAI ROSICANDO=? HAHAHAAH ROSICA ROSICA ROSICA E IO VADO AVANTI E TU RIMANI SEMPRE DIETRO !huhander
Reply
#5

Molto uttile bravo!
Reply
#6

English...

This FS can be simplified very much.
Reply
#7

Did you notice that every time, "listitem" is the same as the second parameter of SetPlayerTime? So you can change it all in
Код:
new str[64];
SetPlayerTime(playerid,listitem,0);
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
format(str, sizeof(str),"Server: {00FFFF}You have set your time on %d:00",listitem);
SendClientMessage(playerid, 0x0000FFAA,str);
Nota come la programmazione, essendo ripetizione di tante istruzioni, puт essere semplificata di molto

(Little italian digression :P)
Reply
#8

Rosica?.. di cosa?
Reply
#9

rox man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)