11.08.2013, 12:59
i try to make /buyguns InRangeOfPoints in ammunation, its works perfect but when i i buy like MM9 i getting banned from my server...
can you help me with that? here a code
BTW it FS.
Please help me how do i make it prevent ban by /buyguns command on ammunation
can you help me with that? here a code
Код:
#include <a_samp> #include <zcmd> // Goverment Ammunation // Legal Weapons #define COLOR_WHITE 0xFFFFFFAA #define COLOR_GREEN 0x80FF00AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GRAD2 0xBFC0C2FF CMD:buyguns(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 3.0, 308.2658, -140.7199, 999.6016)) { SendClientMessage(playerid, COLOR_GRAD2, " You are not at the Goverment Ammunation!"); return 1; } ShowPlayerDialog(playerid,253,DIALOG_STYLE_LIST,"{0xFFFFFFAA}Legal Weapons","MM9 {80FF00}$1000{FFFFFF}\nShotgun {80FF00}$5000{FFFFFF}\nRifle {80FF00}$10000{FFFFFF}","Select", "Back"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 253) { if(response) { if(listitem == 0) { if(GetPlayerMoney(playerid) > 1000) { GivePlayerMoney(playerid, -1000); GameTextForPlayer(playerid, "~r~ -1000$", 5000, 1); GivePlayerWeapon(playerid, 22, 60000); }else{SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");} } if(listitem == 1) { if(GetPlayerMoney(playerid) > 5000) { GivePlayerMoney(playerid, -5000); GameTextForPlayer(playerid, "~r~ -5000$", 5000, 1); GivePlayerWeapon(playerid, 25, 60000); }else{SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");} } if(listitem == 2) { if(GetPlayerMoney(playerid) > 10000) { GivePlayerMoney(playerid, -10000); GameTextForPlayer(playerid, "~r~ -10000$", 5000, 1); GivePlayerWeapon(playerid, 33, 60000); }else{SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");} } } } return 1; }
Please help me how do i make it prevent ban by /buyguns command on ammunation