03.04.2012, 15:32
(
Последний раз редактировалось RaulSTARs; 03.04.2012 в 17:52.
)
Hello , today I tryed to do an command like /store (for gangs ) but for The AGency (with Sniper, knife etc) and i copyed the /store command and i replaced it with /storeh and dialog but when I go to server and type /storeh nothing happened , I hoped to only appear You are not a familly member but NOTHING. This is /store command
And Now /storeh
Who know to fix it please?
pawn Код:
if(strcmp(cmd, "/store", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if(PlayerToPoint(2.0, playerid, 934.3364,7.3391,1000.9910) || PlayerToPoint(2.0, playerid, 1287.1769,-780.4103,1091.9063) || PlayerToPoint(2.0, playerid, 1102.6122,-295.8387,73.9922) || PlayerToPoint(2.0, playerid, 1210.7998,3.4352,1000.9219) || PlayerToPoint(2.0, playerid, 752.7310,1442.9974,1102.7031))
{
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, ""color_orange"Store Weapon Lists", ""wh"Health "color_red"500"color_lime"$\n"wh"Extra Health "color_red"1,000"color_lime"$\n"wh"Katana "color_red"1,000"color_green"$\n"wh"Deagle "color_red"2,000$\n"wh"Ak-47 "color_red"3,700"color_green"$\n"wh"MP5 "color_red"3,500"color_green"$","Buy", "Cancel");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE,"You are not a family member");
return 1;
}
pawn Код:
if(strcmp(cmd, "/storeh", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(PlayerToPoint(2.0, playerid, -784.9709,500.6018,1371.7422))
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, ""color_orange"Store Weapon Lists", ""wh"Health "color_red"500"color_lime"$\n"wh"Extra Health "color_red"1,000"color_lime"$\n"wh"Sniper "color_red"500"color_green"$\n"wh"Deagle "color_red"500$\n"wh"Spas "color_red"500"color_green"$\n"wh"Knife "color_red"500"color_green"$","Buy", "Cancel");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE,"You are not a family member");
return 1;
}
}
}