GetPlayerAmmo (Решено)
#3

if ( strcmp( cmdtext, "/weap", true ) == 0 )
{
new wp = GetPlayerWeapon(playerid), ms[40];

switch ( wp )
{
case 0..15, 46 : format( ms, 20, "weapon: %d", wp );
default : format( ms, 40, "weapon: %d, ammo: %d", wp, GetPlayerAmmo(playerid) );
}

SendClientMessage( playerid, 0xFFFFFFAA, ms );

return 1;
}
Reply


Messages In This Thread
GetPlayerAmmo (Решено) - by Nikid - 12.06.2010, 14:42
Re: GetPlayerAmmo - by Nikid - 12.06.2010, 15:16
Re: GetPlayerAmmo - by MX_Master - 12.06.2010, 16:06
Re: GetPlayerAmmo - by Nikid - 12.06.2010, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)