SA-MP Forums Archive
websitevieuwer wont work... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: websitevieuwer wont work... (/showthread.php?tid=64786)



websitevieuwer wont work... - DarkplayeR - 07.02.2009

Hi i made this websiteviewer in a hurry but it isent working, i cant see it on my server

-> script
Код:
#include <a_samp>
new Text:Textdraw1;
new Text:Textdraw0;
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" DarkplayeRs Websiteviewer");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#endif

public OnPlayerConnect(playerid)
{
	TextDrawShowForPlayer(playerid, Textdraw0);
	TextDrawShowForPlayer(playerid, Textdraw1);
	return 1;
}

public OnGameModeInit()
{
	//Site textdraw
	Textdraw1 = TextDrawCreate(1.000000,433.000000,"http://darkplayers-host.tk/");
	TextDrawAlignment(Textdraw1,0);
	TextDrawBackgroundColor(Textdraw1,0x000000ff);
	TextDrawFont(Textdraw1,2);
	TextDrawLetterSize(Textdraw1,0.499999,1.100000);
	TextDrawColor(Textdraw1,0xffffffff);
	TextDrawSetOutline(Textdraw1,1);
	TextDrawSetProportional(Textdraw1,1);
	TextDrawSetShadow(Textdraw1,1);
	//Textdraw above map
	Textdraw0 = TextDrawCreate(542.000000,54.000000,"[NL] DarkplayeR's Host [NL]");
	TextDrawAlignment(Textdraw0,0);
	TextDrawBackgroundColor(Textdraw0,0x000000ff);
	TextDrawFont(Textdraw0,3);
	TextDrawLetterSize(Textdraw0,0.299999,1.100000);
	TextDrawColor(Textdraw0,0xffffffff);
	TextDrawSetOutline(Textdraw0,1);
	TextDrawSetProportional(Textdraw0,1);
	TextDrawSetShadow(Textdraw0,4);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}
aim not very good, just basics scripts

thx for helping

Bye


Re: websitevieuwer wont work... - Mikep - 07.02.2009

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer


Re: websitevieuwer wont work... - DarkplayeR - 07.02.2009

no :P

I want all players to see my text continuous

not one player

but new Text:Textdraw1;

is that wrong than ?


Re: websitevieuwer wont work... - ICECOLDKILLAK8 - 07.02.2009

https://sampwiki.blast.hk/wiki/TextDrawShowForAll


Re: websitevieuwer wont work... - DarkplayeR - 07.02.2009

whats

new Text:Textdraw1;
new Text:Textdraw0;

than for ??

is that not for all players?


Re: websitevieuwer wont work... - ICECOLDKILLAK8 - 07.02.2009

it will show for all players


Re: websitevieuwer wont work... - DarkplayeR - 07.02.2009

ok,

thats already in my script

but why cant i see it in my server?

my script wrong or ?

and yes i suck at scripting :P haha





Re: websitevieuwer wont work... - DarkplayeR - 09.02.2009

help ?

can anyone check my fs


Re: websitevieuwer wont work... - SpiderPork - 09.02.2009

https://sampwiki.blast.hk/wiki/TextDrawShowForAll


Re: websitevieuwer wont work... - DarkplayeR - 10.02.2009

Quote:
Originally Posted by SpiderPork
OMG... just give me an answer not a link!!! ...

just say what i dit wrong an hou i fix it!