12.11.2013, 13:16
Hello SA:MP,
I need help. I just installed a bank robbery system (filescript)...It works fine but when someone finish the robbery, the system give some money but it takes them back...I dont really know if the server causes this problem but here is the CMD..
THANK YOU!
I need help. I just installed a bank robbery system (filescript)...It works fine but when someone finish the robbery, the system give some money but it takes them back...I dont really know if the server causes this problem but here is the CMD..
Код:
CMD:robbank(playerid, params[]) { if(robpossible == 1) //If the bank can be robbed we continue below { if(IsPlayerInRangeOfPoint(playerid, 5.0, 1424.634521,-1003.469665,1639.784301)) {//Next thing we do is, we check if we are at the bank interior ^^ robpossible = 0; //Then we set the bank so it cannot be robbed SetTimer("waittimer", 2400000, false); //Normal Mode 5 minutes /*We run the timer(5 minutes) for the function that is going to make the bank available for robbing again */ //SetTimer("waittimer", 300000, false); //Test Mode 65 seconds SetTimer("robtimer", 180000, false); /* We also run another timer(1 minute) for the function that is actually going to give us the money and a user friendly message. */ /* Add a function that would notify the police. */ SendClientMessage(playerid, COLOR_WHITE, "You are robbing the bank, the police has been notified!"); SendClientMessage(playerid, COLOR_WHITE, "You gotta stay 3 minutes in the bank in order to rob it!"); SendClientMessageToAll(COLOR_WHITE, "{FF0000}CITY ALERT: A bank robbery has been noted!"); } } else { SendClientMessage(playerid, COLOR_WHITE, "You can't rob the bank right now!"); } return 1; }