09.01.2014, 15:00
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 1626.1011,124.8513,36.3228))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(TollBoothPaid[playerid] == 0)
{
new string[128];
PlayerInfo[playerid][pCash] -= TOLL_BOOTH_FEE;
MoveDynamicObject(TollBoothLV, 1624.5881, 136.6429, 35.8382, 1, -0.0, -0.0, -0.0);
format(string, sizeof(string), "The toll booth has cost you: $%i. You have 5 seconds to get through.", TOLL_BOOTH_FEE);
SendClientMessage(playerid, COLOR_YELLOW, string);
TollBoothLV = 1;
TollBoothPaid[playerid] = 1;
SetTimer("tollboothlv", 5000, false, "i", playerid);
return 1;
}
}
}