22.03.2009, 15:26
Fixed
ty to Rk_
ty to Rk_
if(!strcmp("/buygun", cmdtext, true))
{
if(PlayerInfo[playerid][pgunLic] < 1)
{
if(PlayerToPoint(5.0,playerid,296.7144,-38.2921,1001.5156)) // ammu1 LS
{
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(ammu1, playerid);
}
else if(PlayerToPoint(5.0,playerid,290.3433,-109.1477,1001.5156)) // ammu2 LS
{
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(ammu1, playerid);
}
else if(PlayerToPoint(5.0,playerid,1139.7152,-3.8370,1000.6719)) // Mambo Casino
{
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(ammu1, playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You don't have a weapon license");
}
}
return 1;
}