17.08.2011, 09:04
Hey i want to add my buy score menu to the /shop list
Heres The Code For Shop
But i want to add my buy score menu
example
And i also want when i click score menu it must pop this out!:
Please Help !
Heres The Code For Shop
pawn Код:
if(strcmp("/shop", cmdtext, true, 10) == 0)
{
if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
else
{
if(!IsPlayerInRangeOfPoint(playerid,4.0,-28.0168,-89.9490,1003.5469)) return SendClientMessage(playerid,COLOR_RED,"You Have To Be In Market 24/7");
else
{
SendClientMessage(playerid, COLOR_RED, "Welcome To Market 24/7");
ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Market 24/7 Menu","Sprunk (Coast $50)\nBeer (Coast $100)\nWine (Coast $100)\nCigarette (Coast $50)","Buy","Cancel");
}
}
return 1;
}
example
Код:
Blahblah blah Blahblah blah Blahblah blah Blahblah blah Score Menu
pawn Код:
if(!strcmp(cmdtext, "/buyscore", true))
{
if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
else
{
ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Buy Score Menu","10 Score (Coast $1000)\n50 Score (Coast $10000)\n100 Score (Coast $50000)\n500 Score (Coast $1000000)","Buy","Cancel");
}
return 1;
}