SA-MP Forums Archive
OnPlayerConnect doesn't send a message on the connect. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerConnect doesn't send a message on the connect. (/showthread.php?tid=89723)



OnPlayerConnect doesn't send a message on the connect. - speedruntrainer - 03.08.2009

I have problems with showing a message on the player connect.
pawn Код:
public OnPlayerConnect(playerid) {
SendClientMessage(playerid, yellow, "Welcome. To see the new commands, use /newcmds");
return 1;
}
The problem is, you don't see this message when you connect :/


Re: OnPlayerConnect doesn't send a message on the connect. - Criss_Angel - 03.08.2009

Quote:
Originally Posted by speedruntrainer
I have problems with showing a message on the player connect.
pawn Код:
public OnPlayerConnect(playerid) {
SendClientMessage(playerid, yellow, "Welcome. To see the new commands, use /newcmds");
return 1;
}
The problem is, you don't see this message when you connect :/
try this
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, yellow, "Welcome. To see the new commands, use /newcmds");
}
return 1;
}



Re: OnPlayerConnect doesn't send a message on the connect. - Joe Staff - 03.08.2009

Yeah, mega fail there, Captain.

There's no reason what you originally had shouldn't work, make sure you're running the right gamemode under server.cfg and that the gamemode you're currently looking at is in the gamemodes folder


Re: OnPlayerConnect doesn't send a message on the connect. - speedruntrainer - 03.08.2009

Oh ok, I'm scripting for a server, I don't have the whole source, just started a week. So it's over >.<
Btw, I'm admin lvl 10 on that server