Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ShowServerInfo(playerid, info[])
- {
- new string[64];
- GetServerVarAsString(info, string, sizeof(string));
- format(string, sizeof(string), "%s: %s", info, string);
- return SendClientMessage(playerid, -1, string);
- }
- /* Example.
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/serverinfo", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You not re administrator!");
- SendClientMessage(playerid, -1, "Server Info:");
- ShowServerInfo(playerid, "rcon_password");
- ShowServerInfo(playerid, "gamemodetext");
- ShowServerInfo(playerid, "mapname");
- return 1;
- }
- return 0;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement