Advertisement
ZumeZero

[Function] ShowServerInfo.

Feb 10th, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. stock ShowServerInfo(playerid, info[])
  2. {
  3.     new string[64];
  4.     GetServerVarAsString(info, string, sizeof(string));
  5.     format(string, sizeof(string), "%s: %s", info, string);
  6.     return SendClientMessage(playerid, -1, string);
  7. }
  8.  
  9. /* Example.
  10.  
  11. public OnPlayerCommandText(playerid, cmdtext[])
  12. {
  13.     if (strcmp("/serverinfo", cmdtext, true, 10) == 0)
  14.     {
  15.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You not re administrator!");
  16.  
  17.         SendClientMessage(playerid, -1, "Server Info:");
  18.         ShowServerInfo(playerid, "rcon_password");
  19.         ShowServerInfo(playerid, "gamemodetext");
  20.         ShowServerInfo(playerid, "mapname");
  21.         return 1;
  22.     }
  23.     return 0;
  24. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement