Advertisement
Guest User

Untitled

a guest
Apr 30th, 2009
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. <?php
  2.  
  3. // guid is banned from the server
  4. if(substr($finalresponse, 0, 30) == "\xff\xff\xff\xfferror\x0aYou have been BANNED"){
  5.     //you can echo something here to notify you of this
  6. }
  7.  
  8. // server is running some kind of a mod
  9. substr($finalresponse, 0, 24) == "\xff\xff\xff\xffconnectResponse\x20mods"){
  10.     //you can echo something here to notify you of this
  11. }
  12.  
  13. // your ping is too high for the server
  14. substr($finalresponse, 0, 31) == "\xff\xff\xff\xfferror\x0aEXE_ERR_LOW_PING_ONLY"){
  15.     //you can echo something here to notify you of this
  16. }
  17.  
  18. // server has a password needed to connect, yours was invalid or not specified
  19. substr($finalresponse, 0, 30) == "\xff\xff\xff\xfferror\x0aGAME_INVALIDPASSWORD"){
  20.     //you can echo something here to notify you of this
  21. }
  22.  
  23. // your client's version in the connect string is different than the server's
  24. substr($finalresponse, 0, 37) == "\xff\xff\xff\xfferror\x0aEXE_SERVER_IS_DIFFERENT_VER"){
  25.     //you can echo something here to notify you of this
  26. }
  27.                                                
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement