Need help with /myinfo command
#2

pawn Код:
CMD:myinfo( playerid, params[ ] )
{
    new p_IP[ 16 ], sz_msg[ 128 ];
    GetPlayerIp( playerid, p_IP, 16 );
    format( sz_msg, sizeof( sz_msg ), "IP: (%s) Skin: (%d) Score: (%d) Money: (%d) Weapon: (%d) Ammo: (%d) Ping: (%d)", p_IP, GetPlayerSkin( playerid ), GetPlayerScore( playerid ), GetPlayerMoney( playerid ), GetPlayerWeapon( playerid ), GetPlayerAmmo( playerid ), GetPlayerPing( playerid ) );
    SendClientMessage( playerid, -1, sz_msg );
    return 1;
}
You have to make a new variable to store the ip.
Also, you should format the message and then send the custom one.
Reply


Messages In This Thread
Need help with /myinfo command - by Gangs_Rocks - 28.02.2012, 15:25
Re: Need help with /myinfo command - by Konstantinos - 28.02.2012, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)