06.12.2014, 10:08
Move the whole /buyguns command to above the return 1 on line 1010.
Like this:
EDIT: use [PAWNN][/PAWN] (With a single 'N' in the first tag) to post your PAWN code.
Like this:
pawn Код:
//----------------------------------[Enter]-------------------------------------
{
if(strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -1185.7140,24.0274,271.2557))
{
SetPlayerPos(playerid, 1802.6289,17.6406,21.9449);//AmmunationEntrance
SetPlayerInterior(playerid, 1);
return 1;
}
}
if(strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1802.6289,17.6406,21.9449))
{
SetPlayerPos(playerid, -1185.7140,24.0274,271.2557);//AmmunationExit
SetPlayerInterior(playerid, 0);
return 1;
}
}
//---------------------------------[Buy Guns]-----------------------------------
if (strcmp("/buyguns", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 9.0, 1807.8071,17.6406,10.9720))//Buy Guns Location
{
SendClientMessage(playerid, COLOR_WHITE, "{FF0000}> {E5E5E5}Follow the {FF0000}Red {E5E5E5}marker on your Radar!");
SetPlayerCheckpoint(playerid, 2123.2656,-1185.6619,24.0275,3.0);//Buy Guns Marker
return 1;
}
ShowPlayerDialog(playerid,Dialog_BUYGUN,DIALOG_STYLE_LIST,"Illegal Gun Store","M4A1(150) ($5,000)\nRPG(1) ($10,000)\nSniper(50) ($7,000)\nMolotov(2) ($2,000)\nHealth ($1,000)\nArmour ($1,000)","Buy","Cancel");
return 1;
}
return 0;
}