2 Easy things..
#4

Add these under on onplayercommandtext

pawn Код:
if (strcmp("/info", cmdtext, true, 10) == 0)
{
    new string[56],pIP;
    GetPlayerIp(playerid,pIP,36);
    format(string,56,"IP: %s",pIP);
    SendClientMessage(playerid, 0x33FF33AA,string);
    GetServerVarAsString("gamemodetext", string, 36);
    format(string,56,"Gamemode: %s",string);
    SendClientMessage(playerid, 0x33FF33AA,string);
    GetServerVarAsString("mapname", string, 36);
    format(string,56,"Map: %s",string);
    SendClientMessage(playerid, 0x33FF33AA,string);
    return 1;
}
[NOTE]IP is the player IP
Reply


Messages In This Thread
2 Easy things.. - by Noner - 22.07.2011, 17:30
Re: 2 Easy things.. - by MadeMan - 22.07.2011, 17:40
Re: 2 Easy things.. - by Noner - 22.07.2011, 17:41
Re: 2 Easy things.. - by DRIFT_HUNTER - 22.07.2011, 18:14
Re: 2 Easy things.. - by Noner - 22.07.2011, 18:24
Re: 2 Easy things.. - by Ehab1911 - 22.07.2011, 19:01
Re: 2 Easy things.. - by Noner - 22.07.2011, 19:05
Re: 2 Easy things.. - by DRIFT_HUNTER - 22.07.2011, 19:47
Re: 2 Easy things.. - by MoroDan - 22.07.2011, 21:17
Re: 2 Easy things.. - by Noner - 22.07.2011, 21:33

Forum Jump:


Users browsing this thread: 2 Guest(s)