29.02.2016, 21:18
i have a borderpoint script , with a paguj command to pay the customs to open the gate
but when i pay the money , money back again to me
Can anynone help me ?
sorry for english
+rep if u help me
but when i pay the money , money back again to me
Can anynone help me ?
sorry for english
+rep if u help me
PHP код:
COMMAND:paguj(playerid,params[])
{
if(TollsLocked == 1) return SendClientMessage(playerid, COLOR_RED, "OPERATOR: Tolls have been locked upon command. Sorry about that!");
{
if(IsPlayerInRangeOfPoint(playerid,10, 60.4100, -1540.4185, 5.0777))
{
if(Flint1Status == 0)
{
new string[128];
GivePlayerMoney(playerid, -2500);
SetObjectRot( Flint1, 0, 0, -90 );
SendClientMessage(playerid, COLOR_RED, "Toll Operator: Thank you for your payment! You may now proceed.");
SendClientMessage(playerid, COLOR_WHITE, "(( Kufini Do Te Mybllet per 10 Sekonda! ))");
SetTimer("closetollflint1", 10000, true);
format(string, sizeof(string), "%s pagajti 250 dollar kufini.", RemoveUnderScore( playerid ));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Flint1Status = 1;
}
}