SA-MP Forums Archive
Help Me xD - 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: Help Me xD (/showthread.php?tid=246986)

Pages: 1 2


Fixed Anyone Delete It - wheelman_WM - 07.04.2011




i want it to show that


On PlayerConnect
Player Has Joined The Server.

Help ME xD


Re: Help Me xD - [DJ]Boki - 07.04.2011

Use LuxAdmin


Re: Help Me xD - wheelman_WM - 07.04.2011

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


Re: Help Me xD - [DJ]Boki - 07.04.2011

Код:
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;
}



Re: Help Me xD - THE_KNOWN - 07.04.2011

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

So use text draws


Re: Help Me xD - [DJ]Boki - 07.04.2011

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


Re: Help Me xD - wheelman_WM - 07.04.2011

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

and the textdraw also fill in teh code plz


Re: Help Me xD - THE_KNOWN - 07.04.2011

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

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


Re: Help Me xD - wheelman_WM - 07.04.2011

Kinda hard now i only want textdraw code


Re: Help Me xD - [DJ]Boki - 07.04.2011

-.-"

P.S. Read PM


Re: Help Me xD - Infinity - 07.04.2011

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


Re: Help Me xD - [DJ]Boki - 07.04.2011

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


Re: Help Me xD - wheelman_WM - 07.04.2011

xD xD
I only want the code of
Player Joined The Server


Re: Help Me xD - [DJ]Boki - 07.04.2011

Код:
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


Re: Help Me xD - wheelman_WM - 07.04.2011

nt working


Re: Help Me xD - THE_KNOWN - 07.04.2011

http://pastebin.com/NVmnfhMD


Re: Help Me xD - wheelman_WM - 07.04.2011

Thnx


Re: Help Me xD - THE_KNOWN - 07.04.2011

My Pleasure


Re: Help Me xD - Davz*|*Criss - 07.04.2011

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.



Re: Help Me xD - wheelman_WM - 07.04.2011

XD U copied his pastebin