29.01.2019, 16:00
hi, I want to make this code so I can control it with a button, but it makes a pickup mistake
How do I fix it?
How do I fix it?
PHP код:
if(newkeys == KEY_WALK) //FireCela
{
if(IsPlayerInRangeOfPoint(playerid,30, 1012.9439,-1771.2526,13.5999) ||
IsPlayerInRangeOfPoint(playerid,30, 184.0121,-107.6548,2.0234) ||
IsPlayerInRangeOfPoint(playerid,30, 2324.9319,6.9137,26.5526) ||
IsPlayerInRangeOfPoint(playerid,30, 2704.5645,-1281.5867,58.9453) ||
IsPlayerInRangeOfPoint(playerid,30, 2428.9810,-1998.7792,13.5469) ||
IsPlayerInRangeOfPoint(playerid,30, 2467.6877,-2630.0415,13.6554) ||
IsPlayerInRangeOfPoint(playerid,30, 1089.3047,-923.2690,43.3906) ||
IsPlayerInRangeOfPoint(playerid,30, 480.3262,-1319.9395,15.6367) ||
IsPlayerInRangeOfPoint(playerid,30, 359.4020,166.7152,1008.3828))
{
for(new b=0; b < MAX_BANKS; b++)
{
if(pickupid == BankPickup[b])
{
if(VRServer[playerid][IPIP] == false)
{
new BankString[128];
VRServer[playerid][IPIP] = true;
format(BankString, sizeof(BankString), "{ff0000}Banka{ffffff} Stav konta: %d$", PlayerInfo[playerid][Bank]);
OtvoritPlayerDialog(playerid,BANKA_INFO,DIALOG_STYLE_LIST,BankString,"Vloћit\nVybrat","OK","Cancel");
TogglePlayerControllable(playerid, 0);
return 0;
}
}
}
}
}