SA-MP Forums Archive
Welcome text - 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: Welcome text (/showthread.php?tid=113590)



Welcome text - [ATA]CJ_RuLeZ - 14.12.2009

Hi guys! Im new to scripting. So i want to know how to make a welcome text on my Sa-Mp server?
Like: Welcome to ~ server. I wish you Good Luck. By [ATA]CJ_RuLeZ.

Thanks.



Re: Welcome text - Rickzor14 - 14.12.2009

Try add this:
GameTextForPlayer(playerid,"~g~<Your server Name>~g~<Anything else to add>",4500,3);

It works for me


Re: Welcome text - [ATA]CJ_RuLeZ - 14.12.2009

Nope. Doesnt Work. I added it but shows error.


Re: Welcome text - saiberfun - 14.12.2009

Quote:
Originally Posted by [ATA
CJ_RuLeZ ]
Nope. Doesnt Work. I added it but shows error.
add it under OnGameModeInit


Re: Welcome text - Jakku - 14.12.2009

pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0x5650D896, "Welcome to my server :)");
}
If you already have Public OnPlayerConnect, then add just this under it:

pawn Код:
SendClientMessage(playerid,0x5650D896, "Welcome to my server :)");



Re: Welcome text - Jakku - 14.12.2009

Quote:
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
Originally Posted by [ATA
CJ_RuLeZ ]
Nope. Doesnt Work. I added it but shows error.
add it under OnGameModeInit
OnGameModeInit is called when the gamemode is loaded, not when player connects


Re: Welcome text - [ATA]CJ_RuLeZ - 14.12.2009

Quote:
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
Originally Posted by [ATA
CJ_RuLeZ ]
Nope. Doesnt Work. I added it but shows error.
add it under OnGameModeInit
Ok but i only have one problem left: Desktop\samp03asvr_R4_win32\gamemodes\lvdm.pwn(371 ) : error 017: undefined symbol "playerid".


Re: Welcome text - Tigerbeast11 - 14.12.2009

Dont put it under ONGAMEMODEINIT!!!! It doesnt have a playerid param.


Re: Welcome text - [ATA]CJ_RuLeZ - 14.12.2009

OK guys problem solved. BTW Thanks for your help fellas


Re: Welcome text - saiberfun - 14.12.2009

Quote:
Originally Posted by Jakku
Quote:
Originally Posted by ┤ŞąiBЄЯҒПŋ├
Quote:
Originally Posted by [ATA
CJ_RuLeZ ]
Nope. Doesnt Work. I added it but shows error.
add it under OnGameModeInit
OnGameModeInit is called when the gamemode is loaded, not when player connects
sry sry
just went quick by was my fault...
didn't have much time to think about O_O
u accept my aopologiez? ^^