Help Me xD
#1




i want it to show that


On PlayerConnect
Player Has Joined The Server.

Help ME xD
Reply
#2

Use LuxAdmin
Reply
#3

What ?
Its doesnt show a bar like this
and i dont have
joined server
left server[timeout] [leaving]

This too in GM
SO plz i also want that code also
Reply
#4

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new gPlayerName[30], str[256];
	switch (reason)  {
	case 0: {
	GetPlayerName(playerid, gPlayerName, 30);
	format(str, 256, "%s has Leave the Server! (Timeout)", gPlayerName);
	SendClientMessageToAll(colorwhite, str);
	}
	case 1: {
	GetPlayerName(playerid, gPlayerName, 30);
	format(str, 256, "%s has Leave the Server! (Leaving)", gPlayerName);
	SendClientMessageToAll(colorwhite, str);
	}
	case 2: {
	GetPlayerName(playerid, gPlayerName, 30);
	format(str, 256, "%s has Leave the Server! (Kick/Ban)", gPlayerName);
	SendClientMessageToAll(colorwhite, str);
	}
	}
	return 1;
}
Reply
#5

i think he wants the box too.....

So use text draws
Reply
#6

Okay.just here insert rextdraw SendClientMessageToAll(colorwhite, str);
Reply
#7

sry but what the code of on connect
i mean
player joined the server

and the textdraw also fill in teh code plz
Reply
#8

https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages

https://sampforum.blast.hk/showthread.php?tid=2867
Reply
#9

Kinda hard now i only want textdraw code
Reply
#10

-.-"

P.S. Read PM
Reply
#11

Read the tutorials above.
Seriously, we can't help you more then this for two reasons:
1: We don't know what registration system you use. (Maybe your own, but I doubt it.) So we have no clue what variables we should use.
2: You need to learn it yourself sometime
Reply
#12

Quote:
Originally Posted by Infinity
Посмотреть сообщение
Read the tutorials above.
Seriously, we can't help you more then this for two reasons:
1: We don't know what registration system you use. (Maybe your own, but I doubt it.) So we have no clue what variables we should use.
2: You need to learn it yourself sometime
I aggree
Reply
#13

xD xD
I only want the code of
Player Joined The Server
Reply
#14

Код:
new Text:txt;
new Text:gTextDraw;
#define INVALID_TEXT_DRAW (0xFFFF)
txt = TextDrawCreate(10.0, 100.0, "Sample text draw under the chat box");
TextDrawUseBox(txt, 1);
TextDrawShowForPlayer(playerid, txt);

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, gTextDraw);
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s has joined the server", pname);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
OnGameModeinit ()
gTextDraw = TextDrawCreate(10.0, 100.0, "Welcome to my server!");
TextDrawUseBox(gTextDraw, 1);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, gTextDraw);
return 1;
}
I hope this helps
Reply
#15

nt working
Reply
#16

http://pastebin.com/NVmnfhMD
Reply
#17

Thnx
Reply
#18

My Pleasure
Reply
#19

Top of your Script

pawn Код:
new Text:Join;

OnGameModeInit

pawn Код:
new pName[MAX_PLAYER_NAME];
    new string[128];
    Join = TextDrawCreate(5.000000,255.000000, string);
    format(string, sizeof(string), "%s has joined the server",pName);
    TextDrawUseBox(Join,1);
    TextDrawBoxColor(Join,0x00000099);
    TextDrawTextSize(Join,191.000000,1.000000);
    TextDrawAlignment(Join,0);
    TextDrawBackgroundColor(Join,0x000000ff);
    TextDrawFont(Join,3);
    TextDrawLetterSize(Join,0.299999,1.200000);
    TextDrawColor(Join,0xffffffff);
    TextDrawSetOutline(Join,1);
    TextDrawSetProportional(Join,1);
    TextDrawSetShadow(Join,1);
OnPlayerConnect

pawn Код:
TextDrawShowForAll(Join);
SetTimer("TextDrawHide",4000,true);
And then somewhere else put this or on top.

pawn Код:
forward TextDrawHide();
And this function.

pawn Код:
public TextDrawHide()
{
       TextDrawHideForAll(Join);
        return 1;
}
I did not tested.
Reply
#20

XD U copied his pastebin
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)