Help 500 bootz join in my server?
#1

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

And we are meant to guess your code ?
Reply
#3

Show your join message code, dude.
Reply
#4

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

Your OnPlayerConnect is not the same as in the picture.
Reply
#6

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

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

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

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......
}
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)