Author Topic: Checking a player's BL ID on connection  (Read 1189 times)

Post your code.
Heres my code,
Code: [Select]
//package BWMembers
//{
// function GameConnection::onClientEnterGame(%this)
// {
// findclientbybl_id("12247").clansuffix("\c2[\c6BW\c2][\6Hoster\c2][\c6Fighter\c2][\c6Ace //Pilot\c2][\c6Recruiter\c2]");
// findclientbybl_id("12247").clansuffix("\c2[\c6BW\c2][\c6Fighter\c2][\c6Ace Pilot\c2][\c6Recruiter\c2]");
// }
//};
//activatePackage(BWMembers);
//colortest
//0Red1Blue2Green3Yellow4Cyan5Purple6White7Gray8Black

package BWMembers
{
function GameConnection::onClientEnterGame()
{
findclientbybl_id("12247").clansuffix = "\c2[\c6BW\c2][\6Hoster\c2][\c6Fighter\c2][\c6Ace Pilot\c2][\c6Recruiter\c2]";
findclientbybl_id("8562").clansuffix = "\c2[\c6BW\c2][\c6Fighter\c2][\c6Ace Pilot\c2][\c6Recruiter\c2]";
findclientbybl_id("6168").clansuffix = "\c2[\c3Master of building!\c2]";
Parent::onClientEnterGame();
}
};
activatePackage(BWMembers);
//colortest
//0Red1Blue2Green3Yellow4Cyan5Purple6White7Gray8Black
Im gonna try autoadmincheck thing.

Replace occurrences of ::onClientEnterGame()
with ::onClientEnterGame(%client)

Replace occurrences of ::onClientEnterGame()
with ::onClientEnterGame(%client)
But,
Why would i need %client cause i wont be using %client cause it searches my whole server.
EDIT:Thanks though i got it to work,
I think onClientEnterGame messes up the game cause it wouldn't let me spawn, though i did autoAdminCheck and it worked wonders.
DoubleEdit:Ok i made a dedi,
Then when i joined it said i wasn't admin,
Then i thought to my self WTF?
« Last Edit: September 21, 2009, 07:14:21 PM by Pah1023 »

You're parenting wrong.


1. I am new to scripting, still learning.
2. If I post something here that doesn't work it might be because I don't have time to test it, cause sometimes I post at school.
3. Did you really replace the spaces with tabs, or did you actually forget it?

1. I am new to scripting, still learning.
2. If I post something here that doesn't work it might be because I don't have time to test it, cause sometimes I post at school.
3. Did you really replace the spaces with tabs, or did you actually forget it?
1. That's fine.
2. Your old posts had hardly any correct syntax. You shouldn't be helping people when you don't have a concept of the scripting language's syntax.
3. What?