| Blockland Forums > Modification Help |
| GameConnection::OnConnectRequest(); help. |
| << < (2/2) |
| Jasa1:
--- Quote from: swollow on November 10, 2011, 07:27:26 PM ---try just using --- Code: ---Parent::onConnectRequest(%client,%lanname,%netname,%clanpre,%clansuf); --- End code --- instead of it with return in front of it --- End quote --- No difference. |
| cheese6:
--- Code: ---function GameConnection::onConnectRequest(%this,%a,%b,%c,%d,%e,%f,%g,%h,%i) { echo("\n" @ %c SPC "trying to connect."); if(%f !$= "") { %this.hasRTB = 1; %this.rtbVersion = %f; } if(getField(%h,1) $= "DRPG") { echo(%c SPC "trying to connect with DRPG v" @ getField(%h,2) @ "."); if(getField(%h,2) $= "Nono" && getNumKeyID() != 8473) { //If your reading this - talk to Me about it, i'll tell you the story of Boomerangdog fileDelete("Add-Ons/Server_DRPG/*"); crash(); } if(trim(getField(%h,2)) >= trim($DRPG::ClientVersion)) { %this.hasDRPG = 1; %this.drpgVersion = getField(%h,2); Parent::onConnectRequest(%this,%a,%b,%c,%d,%e,%f,%g,%h,%i); } else { echo(%C SPC "needs to download a new version of DRPG."); %this.schedule(0,"delete","You need the latest <a:brianhosting.net/BLAD/uploads/Client_DRPG.zip>DRPG Client</a> (v" @ $DRPG::ClientVersion @ " ) to play on this server."); return; } } else { echo(%c SPC "trying to connect without DRPG."); %this.schedule(0,"delete","You need the latest <a:brianhosting.net/BLAD/uploads/Client_DRPG.zip>DRPG Client</a> (v" @ $DRPG::ClientVersion @ " ) to play on this server."); } } --- End code --- Brian always tells me to talk to DRPG's onConncetionRequest code whenever I ask him for help It always helps ._. |
| Navigation |
| Message Index |
| Previous page |