Command Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command Problem (
/showthread.php?tid=331077)
Command Problem -
RaulSTARs - 03.04.2012
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
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;
}
And Now /storeh
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;
}
}
}
Who know to fix it
![Sad](images/smilies/sad.gif)
please?
Re: Command Problem -
RaulSTARs - 03.04.2012
Somebody? sorry for 2x post
Re: Command Problem -
dannyk0ed - 03.04.2012
Any Errors or warnings?
P.S use [ pawn] [ /pawn]
Re: Command Problem -
RaulSTARs - 03.04.2012
No , I don't have any errors , everything is fine. But /storeH dont work...