28.11.2012, 10:58
Hello, I have 2 dialogs which aren't responding to me, /diamondtoys and /diamondweapons.
here's the script for them
by the way there are no errors !! just when i do it it dont respond ..
Thanks a lot for helpers !!
here's the script for them
PHP код:
CMD:diamondtoys(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 4, 2912.23, -2035.52, 11.01))
{
SendClientMessageEx(playerid, COLOR_WHITE, " You are not in the Diamond Donator Toys room!");
return 1;
}
if(PlayerInfo[playerid][pDonator] < 3)
{
SendClientMessageEx(playerid, COLOR_WHITE, "* You are not a Diamond Donator");
return 1;
}
if(PlayerInfo[playerid][pDonator] == 3)
{
ShowPlayerDialog(playerid, BUYTOYSDIAMOND, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the Diamond Donator Toy store! Here you can buy accessories to attach to your character.\n\nFirst, we will choose a slot to store the toy in.","Continue", "Cancel");
}
return 1;
}
CMD:diamondweapons(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 4, 2913.75, -2031.48, 11.01))
{
if(PlayerInfo[playerid][pDonator] < 3)
{
SendClientMessageEx(playerid, COLOR_WHITE, "* You are not Diamond Donator");
}
else
{
ShowPlayerDialog(playerid, BUYWEPSDIAMOND, DIALOG_STYLE_MSGBOX, "Weapon Store", "Welcome to the Diamond Donator Weapon store! Here you can buy weapons.\n\nFirst, you will choose a weapon.","Continue", "Cancel");
}
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in the Diamond Weapon store !" );
}
return 1;
}
Thanks a lot for helpers !!