23.10.2009, 21:20
pawn Код:
public Inventorius(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Privalote buti prisijunges ! ");
return 1;
}
new gunname[100];
GetWeaponName(PlayerInfo[playerid][pInvWeapon], gunname, sizeof(gunname));
if(PlayerInfo[playerid][pInvWeapon] != 0 && PlayerInfo[playerid][pInvAmmo] != 0)
{
Inv = CreateMenu("Inventorius", 2, 200.0, 100.0, 150.0, 150.0);
new string[128];
format(string, sizeof(string), "+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
AddMenuItem(Inv,0,string);
AddMenuItem(Inv,0,string);
AddMenuItem(Inv,0,string);
AddMenuItem(Inv,0,string);
}
else
{
AddMenuItem(Inv,0,"~w~Empy");
}
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "_______________________________");
SendClientMessage(playerid, COLOR_WHITE, "[Help]: /takegun | /putgun");
}
return 1;
}