Advertisement
Havoclivekiller

Untitled

Jul 24th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. function ConnectionTest(id,params)
  2.     local result, test = sscanf(params,"d")
  3.     if result == 1 then
  4.         if test == 1 then
  5.             SendPlayerMessage(id,255,255,255,string.format("Your IP : %s", GetPlayerIP(id)));
  6.         elseif test == 2 then
  7.             SendPlayerMessage(id,255,255,255,string.format("Your MAC : %s", GetMacAddress(id)));
  8.         else
  9.             SendPlayerMessage(id,255,255,255,string.format("Your GMP name : %s", GMPName[id]));
  10.         end
  11.     else
  12.         SendPlayerMessage(id,255,255,255,string.format("Your GMP name : %s", GMPName[id]));
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement