khalifakk

Url/IP System

Aug 23rd, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.74 KB | None | 0 0
  1. // Url System
  2. // Credits: khalifakk
  3.  
  4. #include <a_samp>
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("\n--------------------------------------");
  9.     print(" Url/IP System - khalifakk              ");
  10.     print("--------------------------------------\n");
  11.     return 1;
  12. }
  13.  
  14. public OnPlayerConnect(playerid)
  15. {
  16.     SendClientMessage(playerid, 0x00FF00FF, "SERVER URL: www.server.com");
  17.     SendClientMessage(playerid, 0x00FF00FF, "SERVER IP: 127.0.0.1");
  18.     return 1;
  19. }
  20.  
  21.  
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24.     if (strcmp("/urlip", cmdtext, true, 10) == 0)
  25.     {
  26.         SendClientMessage(playerid, 0x00FF00FF, "SERVER URL: www.server.com");
  27.         SendClientMessage(playerid, 0x00FF00FF, "SERVER IP: 127.0.0.1");
  28.         return 1;
  29.     }
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment