SA-MP Forums Archive
Help 500 bootz join in my server? - 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)
+--- Thread: Help 500 bootz join in my server? (/showthread.php?tid=523045)



Help 500 bootz join in my server? - DarK_FeneR - 30.06.2014

Every time i use the GMX command, of all script and console, when restart give this in chat... How can i do to remove that?



Re: Help 500 bootz join in my server? - Inn0cent - 30.06.2014

And we are meant to guess your code ?


Re: Help 500 bootz join in my server? - Laurey - 30.06.2014

Show your join message code, dude.


Re: Help 500 bootz join in my server? - DarK_FeneR - 30.06.2014

Код:
public OnPlayerConnect(playerid)
{
    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;
}



Re: Help 500 bootz join in my server? - Stinged - 30.06.2014

Your OnPlayerConnect is not the same as in the picture.


Re: Help 500 bootz join in my server? - DarK_FeneR - 30.06.2014

yes, i'v get the join message in https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages

The my code is

new plName[25], string[100];
GetPlayerName(playerid,plName,MAX_PLAYER_NAME);
format(string,sizeof string,"{00FF00}---> %s (ID:%d) и {FFFFFF}entrato {FF0000}nel server {FFFF00} (JOIN)",plName, playerid);
SendClientMessageToAll(0xFFFFFFAA,string);


Re: Help 500 bootz join in my server? - Don_Cage - 30.06.2014

are you habving any npc's that could cause this?


Re: Help 500 bootz join in my server? - ikkentim - 30.06.2014

I guess by bootz you mean npc's?

pawn Код:
if(!IsPlayerNPC(playerid))
{
new plName[25], string[100];
GetPlayerName(playerid,plName,MAX_PLAYER_NAME);
format(string,sizeof string,"{00FF00}---> %s (ID:%d) и {FFFFFF}entrato {FF0000}nel server {FFFF00} (JOIN)",plName, playerid);
SendClientMessageToAll(0xFFFFFFAA,string);
}
//Please indent the code yourself.



Re: Help 500 bootz join in my server? - greentarch - 30.06.2014

Quote:
Originally Posted by DarK_FeneR
Посмотреть сообщение
yes, i'v get the join message in https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages

The my code is

new plName[25], string[100];
GetPlayerName(playerid,plName,MAX_PLAYER_NAME);
format(string,sizeof string,"{00FF00}---> %s (ID:%d) и {FFFFFF}entrato {FF0000}nel server {FFFF00} (JOIN)",plName, playerid);
SendClientMessageToAll(0xFFFFFFAA,string);
I don't really know, but try:
pawn Код:
public OnPlayerConnect(playerid) {
    if (IsPlayerNPC(playerid)) return 1;
    // Your script here......
}



Re: Help 500 bootz join in my server? - DarK_FeneR - 02.07.2014

thx to all, iv fixed with:
Код:
//messaggio join inizio
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
	new plName[25], string[100];
    	GetPlayerName(playerid,plName,MAX_PLAYER_NAME);
    	format(string,sizeof string,"{00FF00}---> %s (ID:%d) и {FFFFFF}entrato {FF0000}nel server {FFFF00}(JOINED)",plName, playerid);
    	SendClientMessageToAll(0xFFFFFFAA,string);
}
//messaggio join fine