23.01.2010, 23:17
I use a Role Play Gaming mode.In every gang or mafia i have a cabinet(Where i can get weapons)
When i'm writing /cabinet it says : "You have to many bullets".
Take a look at the line ,Here i show you JUST a gang cabinet.Every gang or mafia is buged
When i'm writing /cabinet it says : "You have to many bullets".
Take a look at the line ,Here i show you JUST a gang cabinet.Every gang or mafia is buged
Код:
if(!strcmp(cmdtext, "/cabinet", true))
{
new weapon,ammo;
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerToPoint(5,playerid,2492.9863,-1710.4384,1014.7422))
{
GetPlayerWeaponData(playerid,1,weapon,ammo);
if(ammo > 100)
{
GetPlayerWeaponData(playerid,2,weapon,ammo);
if(ammo < 150)
{
GetPlayerWeaponData(playerid,4,weapon,ammo);
if(ammo < 150)
{
GetPlayerWeaponData(playerid,3,weapon,ammo);
if(ammo < 150)
{
ShowMenuForPlayer(gunmenu1,playerid);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!");
}
}
}

