16.08.2011, 07:54
Hello!
I've been trying to get this irc script working but with no success.
There's no way I can make it happen that it echoes %s has joined the server when somebody joins.
The echo works when example somebody spawns or when he talks inside the server.
But the join/part messages just won't work.
There is no error at all. I have already tried about 3 scripts, 1 from PlayerX, one from sneaky or what's his name and another one that idk who made.
I have all the includes and the plugins I need.
The code:
Help would be really appriciated, since this is the last thing I need for making my server complete.
Thanks
I've been trying to get this irc script working but with no success.
There's no way I can make it happen that it echoes %s has joined the server when somebody joins.
The echo works when example somebody spawns or when he talks inside the server.
But the join/part messages just won't work.
There is no error at all. I have already tried about 3 scripts, 1 from PlayerX, one from sneaky or what's his name and another one that idk who made.
I have all the includes and the plugins I need.
The code:
Код:
public OnPlayerConnect(playerid) { new msg[128]; if(EchoStatus == 0) return 1; format(msg,sizeof(msg),"12>>4 [%d]12 %s has joined the server.", playerid, PlayerName(playerid)); IRC_Say(IRC_EchoConnection, EchoChan, msg); isPlayerSpawned[playerid] = 0; return 1; } public OnPlayerDisconnect(playerid, reason) { new msg[128]; if(EchoStatus == 0) return 1; format(msg,sizeof(msg),"12>>4 [%d]12 %s has left the server. (%s)", playerid, PlayerName(playerid),IRC_DisconnectNames[reason]); IRC_Say(IRC_EchoConnection, EchoChan, msg); isPlayerSpawned[playerid] = 0; return 1; } public OnPlayerSpawn(playerid) { new msg[128]; if(EchoStatus == 0) return 1; format(msg,sizeof(msg),"12>>4 [%d]12 %s has spawned.", playerid, PlayerName(playerid)); IRC_Say(IRC_EchoConnection, EchoChan, msg); isPlayerSpawned[playerid] = 1; return 1; }
Thanks