Still a problem -
luckie12 - 27.05.2010
hi again my question
i have a toll booth that wont go open
it compiles fine but it wont work in-game
script:
Top Of Script:
Код:
new BoothNDirNGate;
new BoothNDirSGate;
new BoothSDirSGate;
new BoothSDirNGate;
new BoothNDirNPickup;
new BoothNDirSPickup;
new BoothSDirSPickup;
new BoothSDirNPickup;
forward BoothNDirNGateClose();
forward BoothNDirSGateClose();
forward BoothSDirSGateClose();
forward BoothSDirNGateClose();
OnGameModeInit Objects Closed Tollbooth!!!!!!!!!!!!!!
Код:
//Objects OBJECTS WHEN THE TOLLBOOTH IS CLOSED!!!!!!!!!!!!!!
CreateObject(9623, 1793.594360, 687.474426, 17.282511, 0.0000, 0.0000, 351.3283);
CreateObject(9623, 1775.710815, 690.203857, 17.281092, 0.0000, 0.0000, 351.3283);
CreateObject(966, 1782.730225, 685.345886, 15.285233, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1773.754150, 686.950195, 15.282106, 0.0000, 0.0000, 348.7500);
BoothNDirNGate = CreateObject(968, 1773.841919, 686.946228, 16.216358, 0.0000, 268.0403, 348.7500);
BoothNDirSGate = CreateObject(968, 1782.843140, 685.346069, 16.133198, 0.0000, 268.0403, 348.7500);
CreateObject(966, 1793.972412, 697.319824, 14.370026, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1802.745972, 695.731323, 14.365092, 0.0000, 0.0000, 348.7500);
BoothSDirSGate = CreateObject(968, 1802.875244, 695.741699, 15.224345, 0.0000, 268.0403, 348.7499);
BoothSDirNGate = CreateObject(968, 1794.030762, 697.280396, 15.261672, 0.0000, 268.0403, 348.7499);
//Pickups
BoothNDirNPickup = CreatePickup(1274,14,1779.7521,689.9738,16.0389);
BoothNDirSPickup = CreatePickup(1274,14,1771.5936,693.0703,15.9372);
BoothSDirSPickup = CreatePickup(1274,14,1788.7377,688.6647,16.0134);
BoothSDirNPickup = CreatePickup(1274,14,1797.8378,688.8030,15.9129);
OnPlayerPickupPickup:
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == BoothNDirNPickup)
{
if(GetPlayerMoney(playerid) < 100) GameTextForPlayer(playerid,"~r~You need $100!",3000,4);
else
{
MoveObject(BoothNDirNGate,1773.841919, 686.946228, 16.216358, 3000);
}
}
else if(pickupid == BoothNDirSPickup)
{
if(GetPlayerMoney(playerid) < 100) GameTextForPlayer(playerid,"~r~You need $100!",3000,4);
else
{
MoveObject(BoothNDirSGate,1782.843140, 685.346069, 16.133198, 3000);
}
}
else if(pickupid == BoothSDirSPickup)
{
if(GetPlayerMoney(playerid) < 100) GameTextForPlayer(playerid,"~r~You need $100!",3000,4);
else
{
MoveObject( BoothSDirSGate,1802.875244, 695.741699, 15.224345, 3000);
}
}
else if(pickupid == BoothSDirNPickup)
{
if(GetPlayerMoney(playerid) < 100) GameTextForPlayer(playerid,"~r~You need $100!",3000,4);
else
{
MoveObject(BoothSDirNGate,1794.030762, 697.305420, 15.261672, 3000);
}
}
return 1;
}
END OF SCRIPT:
Код:
public BoothNDirNGateClose() MoveObject(BoothNDirNGate,0.0000, 301.5583, 348.7500, 3000);
public BoothNDirSGateClose() MoveObject(BoothNDirSGate,0.0000, 268.0403, 348.7500, 3000);
public BoothSDirSGateClose() MoveObject(BoothSDirSGate,0.0000, 304.9961, 348.7499, 3000);
public BoothSDirNGateClose() MoveObject(BoothSDirNGate,0.0000, 307.5744, 348.7499, 3000);
Objects
Objects for the opened tollbooth:
Код:
CreateObject(9623, 1793.594360, 687.474426, 17.282511, 0.0000, 0.0000, 351.3283);
CreateObject(9623, 1775.710815, 690.203857, 17.281092, 0.0000, 0.0000, 351.3283);
CreateObject(966, 1782.730225, 685.345886, 15.285233, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1773.754150, 686.950195, 15.282106, 0.0000, 0.0000, 348.7500);
CreateObject(968, 1773.841919, 686.946228, 16.216358, 0.0000, 301.5583, 348.7500);
CreateObject(968, 1782.843140, 685.346069, 16.133198, 0.0000, 301.5583, 349.6094);
CreateObject(966, 1793.972412, 697.319824, 14.370026, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1802.745972, 695.731323, 14.365092, 0.0000, 0.0000, 348.7500);
CreateObject(968, 1802.875244, 695.741699, 15.224345, 0.0000, 304.9961, 348.7499);
CreateObject(968, 1794.030762, 697.305420, 15.261672, 0.0000, 307.5744, 348.7499);
CLOSED SAME AS ONGAMEMODEINIT
Код:
//Objects OBJECTS WHEN THE TOLLBOOTH IS CLOSED!!!!!!!!!!!!!!
CreateObject(9623, 1793.594360, 687.474426, 17.282511, 0.0000, 0.0000, 351.3283);
CreateObject(9623, 1775.710815, 690.203857, 17.281092, 0.0000, 0.0000, 351.3283);
CreateObject(966, 1782.730225, 685.345886, 15.285233, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1773.754150, 686.950195, 15.282106, 0.0000, 0.0000, 348.7500);
BoothNDirNGate = CreateObject(968, 1773.841919, 686.946228, 16.216358, 0.0000, 268.0403, 348.7500);
BoothNDirSGate = CreateObject(968, 1782.843140, 685.346069, 16.133198, 0.0000, 268.0403, 348.7500);
CreateObject(966, 1793.972412, 697.319824, 14.370026, 0.0000, 0.0000, 348.7500);
CreateObject(966, 1802.745972, 695.731323, 14.365092, 0.0000, 0.0000, 348.7500);
BoothSDirSGate = CreateObject(968, 1802.875244, 695.741699, 15.224345, 0.0000, 268.0403, 348.7499);
BoothSDirNGate = CreateObject(968, 1794.030762, 697.280396, 15.261672, 0.0000, 268.0403, 348.7499);
Someone knows why?
I need help.
TY ALOT
Luckie12
Re: Still a problem -
ViruZZzZ_ChiLLL - 27.05.2010
Are you using any object streamer?
Re: Still a problem -
luckie12 - 27.05.2010
No
Some One Can Help?! Ty alot
Re: Still a problem -
luckie12 - 27.05.2010
some one? Sorry For Bump