Welcome text
#1

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.
Reply
#2

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

It works for me
Reply
#3

Nope. Doesnt Work. I added it but shows error.
Reply
#4

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

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 :)");
Reply
#6

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
Reply
#7

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".
Reply
#8

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

OK guys problem solved. BTW Thanks for your help fellas
Reply
#10

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? ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)