30.06.2014, 13:27
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?
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;
}
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.
|
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); |
public OnPlayerConnect(playerid) {
if (IsPlayerNPC(playerid)) return 1;
// Your script here......
}
//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