[FilterScript] Stylish login screen.
#21

Good job.
Reply
#22

Thank you for your positive comments guys! Cheers!
Reply
#23

Quote:
Originally Posted by BenJackster
View Post
Cleanboy, add this OnPlayerConnect in Filterscript.
pawn Code:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
 TextDrawShowForPlayer(playerid,Textdraw6);
 TextDrawShowForPlayer(playerid,Textdraw7);
return 1;
}
Compile it, and replace the old .amx with the new one. Re-load the Filterscript, Go In-Game. :c
Also use textdrawhideforplayer ok onplayerspawn ! Sorry replying from phone, ill post a better explenation latter on!
Reply
#24

Quote:
Originally Posted by CharlieSanchez
View Post
Also use textdrawhideforplayer ok onplayerspawn ! Sorry replying from phone, ill post a better explenation latter on!
what u mean in here?
Reply
#25

this is my onplayerconnect,

Code:
public OnPlayerConnect(playerid)
{
	if(IsPlayerNPC(playerid)) return 1;

	new string[128];
    new pname[24];
    
    //Variables
    zoneupdates[playerid] =1;
    //Set up the music so people can hear it while selecting class
	PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/djtq3f3gmh/Karaoke_Supermassive_Black_Hole_-_Muse_-.mp3");
	//Connect Messages
	format(string,sizeof(string),"Welcome to %s!",svname,sversion); //v%s
	SendClientMessage(playerid,COLOR_WHITE,string);
	//format(string,sizeof(string),"We have many fun things for you to do here in %s",sabbv);
	SendClientMessage(playerid,COLOR_ROYALBLUE,string);
	SendClientMessage(playerid,COLOR_LIME,"Please remember to abide by our server /rules at all times");
	SendClientMessage(playerid,COLOR_GREEN,"If you have any problems feel free to /report them to the Administrators online");
	
	//Player Join message
	GetPlayerName(playerid,pname,sizeof(pname));
	format(string,sizeof(string),"%s(%d) Has joined %s!",pname,playerid,svname,sversion); //v%s
	SendClientMessageToAll(COLOR_VIOLETBLUE,string);
	format(string,sizeof(string),"6%s(%d) Has joined %s!",pname,playerid,svname,sversion); //v%s
	IRC_Say(gGroupID,IRC_CHANNEL,string);
	SetPlayerColor(playerid,COLOR_DEADCONNECT);

	//Do things to the player
	JailTimer[playerid] = TextDrawCreate(505.000000, 411.000000, "Jailtime: 60");
	TextDrawBackgroundColor(JailTimer[playerid], -1);
	TextDrawFont(JailTimer[playerid], 3);
	TextDrawLetterSize(JailTimer[playerid], 0.529999, 1.299999);
	TextDrawColor(JailTimer[playerid], 65535);
	TextDrawSetOutline(JailTimer[playerid], 1);
	TextDrawSetProportional(JailTimer[playerid], 1);
	TextDrawUseBox(JailTimer[playerid], 1);
	TextDrawBoxColor(JailTimer[playerid], 255);
	TextDrawTextSize(JailTimer[playerid], 633.000000, 0.000000);
	
	MessageTD[playerid] = TextDrawCreate(241.000000, 410.000000, "TICKET RECIEVED");
	TextDrawBackgroundColor(MessageTD[playerid], 255);
	TextDrawFont(MessageTD[playerid], 1);
	TextDrawLetterSize(MessageTD[playerid], 0.549999, 1.500000);
	TextDrawColor(MessageTD[playerid], -1);
	TextDrawSetOutline(MessageTD[playerid], 0);
	TextDrawSetProportional(MessageTD[playerid], 1);
	TextDrawSetShadow(MessageTD[playerid], 1);
	TextDrawUseBox(MessageTD[playerid], 1);
	TextDrawBoxColor(MessageTD[playerid], 255);
	TextDrawTextSize(MessageTD[playerid], 384.000000, 0.000000);
	
	LocationTD[playerid] = TextDrawCreate(43.000000, 327.000000, "Downtown");
	TextDrawBackgroundColor(LocationTD[playerid], 255);
	TextDrawFont(LocationTD[playerid], 1);
	TextDrawLetterSize(LocationTD[playerid], 0.500000, 1.000000);
	TextDrawColor(LocationTD[playerid], -1);
	TextDrawSetOutline(LocationTD[playerid], 0);
	TextDrawSetProportional(LocationTD[playerid], 1);
	TextDrawSetShadow(LocationTD[playerid], 1);
	
	format(string,sizeof(string),"Version: %s",sversion);
	TextDrawSetString(VersionTD,string);
	TextDrawShowForPlayer(playerid,VersionTD);
	TextDrawShowForPlayer(playerid,WebsiteTD);
	TogglePlayerClock(playerid,1);
	
	SetPlayerMapIcon(playerid,1,-2626.1843,211.5102,4.6097,6,0); //Ammunation
	SetPlayerMapIcon(playerid,2,-2099.6882,899.1699,76.7109,24,0); //CaltonHeightsDH
	SetPlayerMapIcon(playerid,3,-2779.9194,0.3026,10.0625,24,0); //OceanFlatsDH
	SetPlayerMapIcon(playerid,4,-2576.4824,818.9226,49.9844,24,0); //ParadisoDH
	SetPlayerMapIcon(playerid,5,-2433.7866,1281.6011,23.7422,24,0); //JuniperHollowDH
	SetPlayerMapIcon(playerid,6,-1547.4066,123.6555,3.5547,9,0); //ShipYard
	SetPlayerMapIcon(playerid,7,-1657.7573,1210.2754,7.2500,55,0); //Otto\'sCars
	SetPlayerMapIcon(playerid,8,-1923.3926,303.6380,41.0469,8,0); //BombShop
	SetPlayerMapIcon(playerid,9,-2331.8582,-164.2207,35.5547,10,0); //BurgerShotGarcia
	SetPlayerMapIcon(playerid,10,-2671.5444,260.9214,4.6328,10,0); //BurgerShotOcean
	SetPlayerMapIcon(playerid,11,370.7744,-6.5378,1001.8589,14,0); //CluckinBellOcean
	SetPlayerMapIcon(playerid,12,-2553.8923,193.2280,6.1560,49,0); //GayDarStation
	SetPlayerMapIcon(playerid,13,-2241.8118,131.9901,35.3203,47,0); //Zero\'s
	SetPlayerMapIcon(playerid,14,-2242.2817,-85.7698,35.3203,49,0); //Misty\'s
	SetPlayerMapIcon(playerid,15,-1951.9911,300.2070,35.4688,55,0); //WangCars
	SetPlayerMapIcon(playerid,16,-2658.3201,639.5060,14.4531,22,0); //Hospital
	SetPlayerMapIcon(playerid,17,-2568.8982,243.9241,10.2489,7,0); //Barbers
	SetPlayerMapIcon(playerid,18,-2270.1182,-152.8132,35.3203,54,0); //GYM
	SetPlayerMapIcon(playerid,19,-2029.2903,-102.0118,35.1641,36,0); //DrivingSchool
	SetPlayerMapIcon(playerid,20,-1979.9883,138.0498,27.6875,42,0); //TrainStation
	SetPlayerMapIcon(playerid,21,-1911.2001,829.2663,35.1719,10,0); //BurgerShotDowntown
	SetPlayerMapIcon(playerid,22,-1886.2000,862.4730,35.1719,45,0); //DowntownZip
	SetPlayerMapIcon(playerid,23,-1806.8252,947.8553,24.8906,29,0); //FinancialPizza
	SetPlayerMapIcon(playerid,24,-1748.4784,963.3699,24.8828,30,0); //FBI
	SetPlayerMapIcon(playerid,25,-1692.5487,949.6002,24.8906,45,0); //DowntownVictim
	SetPlayerMapIcon(playerid,26,-1496.8027,919.8218,7.1875,52,0); //Bank
	SetPlayerMapIcon(playerid,27,-1609.2813,712.9857,13.7334,30,0); //SFPD
	SetPlayerMapIcon(playerid,28,-1719.8079,1356.6371,7.1875,29,0); //EsplanadePizza
	SetPlayerMapIcon(playerid,29,-2622.5164,1412.6412,7.0938,49,0); //Jizzy\'s
	SetPlayerMapIcon(playerid,30,-2356.0327,1004.7512,50.8984,10,0); //BurgerShotJuniperHollow
	SetPlayerMapIcon(playerid,31,-2374.1877,908.1357,45.4371,45,0); //JuniperHillBinco
	SetPlayerMapIcon(playerid,32,-2446.3350,752.2393,35.1719,62,0); //SupaSave
	SetPlayerMapIcon(playerid,33,-1814.2487,617.8710,35.1719,14,0); //DowntownCluckin
	
	//Check to see if they are registered or logged in
	if(udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn.");
		ShowLoginScreen(playerid);
	}
	else
	if(!udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing.");
		ShowRegisterScreen(playerid);
	}

	for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
	
	return 1;
}
where i will put this codes??

Code:
//  TextDrawShowForPlayer(playerid,Textdraw0);
//	TextDrawShowForPlayer(playerid,Textdraw1);
//	TextDrawShowForPlayer(playerid,Textdraw2);
//	TextDrawShowForPlayer(playerid,Textdraw3);
//  TextDrawShowForPlayer(playerid,Textdraw4);
//	TextDrawShowForPlayer(playerid,Textdraw5);
//  TextDrawShowForPlayer(playerid,Textdraw6);
//  TextDrawShowForPlayer(playerid,Textdraw7);
Reply
#26

Go into the filterscript and search for OnPlayerConnect
pawn Code:
OnPlayerConnect(playerid)
{
// Showing the Login Textdraw
  TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    TextDrawShowForPlayer(playerid,Textdraw2);
    TextDrawShowForPlayer(playerid,Textdraw3);
  TextDrawShowForPlayer(playerid,Textdraw4);
    TextDrawShowForPlayer(playerid,Textdraw5);
  TextDrawShowForPlayer(playerid,Textdraw6);
  TextDrawShowForPlayer(playerid,Textdraw7);
return 1;
}
Reply
#27

YAYYYY!! im really noob, didnt notice that ben Thanks anyways!!! DD
it works look xD


can you help me, i want to change the background when players are connecting?
Reply
#28

wtf bro, i got problem, still the screen is show even u already login and playing ,. check



how to fix that? :O
Reply
#29

lmao, oh so u need to do /screenoff or /screen to show and close it. wtf how i will automatically closed it after i choose a skin? i mean i want it automatic disable and not needing to do /screenoff
Reply
#30

Hi you must use on onplayerSpawn, textdrawhideforplayer funcion.
Reply
#31

Nice logging style.
Reply
#32

Cleanboy; go to Filterscript OnPlayerSpawn and add:
pawn Code:
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
return 1;
}
Reply
#33

I think that this isn\'t something special but thanks for sharing !
Reply
#34

I like this alot using it for my project if you dont mind
Reply
#35

It\'s just simple. Cant consider as stylish
Reply
#36

Looking good
Reply
#37

Thank you for the comments, well i consider it stylish some might disagree, but i\'m happy that some people used it and are using it, cheers.
Reply
#38

simple and nice
Reply
#39

Nice Man.
Reply
#40

nice bro
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)