23.06.2016, 17:34
Here is it
PHP код:
COMMAND:buyweapons(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1720.9337, -1629.0479, 20.2135))
{
ShowPlayerDialog(playerid, FIRSTMENU, DIALOG_STYLE_LIST,
"Weapons List",
"MP5 5 Tokens\nShotgun 5 Tokens\nDesert Eagle 5 Tokens\nCombat Shotgun5 Tokens\nM4 5 Tokens\nAK-47 5 Tokens\nSniper Rifle 5 Tokens",
"Select", "Exit");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Are not at the weapon point!");
}
}
return 1;
}