SA-MP Forums Archive
IRC Problem - 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: IRC Problem (/showthread.php?tid=478469)



IRC Problem - Xtream - 29.11.2013

Код:
public OnPlayerConnect(playerid)
{
	new joinMsg[128], name[MAX_PLAYER_NAME], Ajoin[128];
	GetPlayerName(playerid, name, sizeof(name));
	format(joinMsg, sizeof(joinMsg), "50JOIN: %s (%d) Has Joined Global Trucking Server.", name, playerid);
	IRC_GroupSay(groupID, IRC_CHANNEL, joinMsg);
	IRC_GroupSay(groupID, ECHO_CHANNEL, joinMsg);
	new giveplayerid, ip[16];
	GetPlayerIp(giveplayerid, ip, sizeof(ip));
	format(Ajoin, sizeof(Ajoin), "50JOIN: %s (%d) Has Joined Global Trucking Server.- (IP): %s", name, playerid, ip);
	IRC_GroupSay(groupID, ADMIN_CHANNEL, Ajoin);
	return 1;
}
The Problem is to i don't see whene someone connect to the server i just see to he spawn or lefted the server!

Pliss Help Me!


Re: IRC Problem - Loot - 29.11.2013

I'm not sure if this might be the solution, but I don't think color 50 even exists..
http://www.ircbeginner.com/ircinfo/colors.html.
Other than that, can you show me OnPlayerSpawn where you sent the spawn messages?


Re: IRC Problem - Xtream - 30.11.2013

Код:
public OnPlayerSpawn(playerid)
{
	new SpawnMsg[128], name[MAX_PLAYER_NAME], string[128], zone[MAX_ZONE_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	format(SpawnMsg, sizeof(SpawnMsg), "5SPAWN: %s (%d) Has Spawned.", name, playerid);
	IRC_GroupSay(groupID, IRC_CHANNEL, SpawnMsg);
	GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
	format(string, sizeof(string), "5 SPAWN: %s (%d) Has Spawned. - Location: %s", name, playerid, zone);
	IRC_GroupSay(groupID, ADMIN_CHANNEL, string);
	return 1;
}



Re: IRC Problem - Loot - 30.11.2013

As you can see above, you're using color 5 - brown, while OnPlayerConnect, you're using an invalid color. (50)
Other than that, they look similar and should work.


Re: IRC Problem - Xtream - 01.12.2013

i fixed the color but it is not working still! :P


Re: IRC Problem - TLN - 07.12.2013

*Wrong post.