Dynamic Object Not Moving - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic Object Not Moving (
/showthread.php?tid=560071)
Dynamic Object Not Moving -
FunnyBear - 26.01.2015
Hey,
I'm trying to make a Bank Robbery system where you go to the vault door and blow it up with a C4. I added an explosion on the coordinates of the door, and it works. However, I used MoveDynamicObject so the door would open but it doesn't open,
pawn Код:
forward BlowTime( playerid );
public BlowTime( playerid )
{
BankIsBeingRobbed = false;
BankRobbed = true;
CreateExplosion(296.10001, 123.10000, 999.29999, 6, 10.0);
MoveDynamicObject(BankVault, 295.22205, 122.26115, 999.29999, 2);
new
str[ 128 ];
format( str, sizeof(str), "[BANK] %s[%d] has blown the Bank Vault Door with a C4", GetName(playerid), playerid);
SendClientMessageToAll(SERVER_MESSAGE, str);
new string[128];
new var = GetPlayerWantedLevel(playerid);
format(string, sizeof(string), "[BANK ROBBERY] Wanted level %d!", var + 6);
SendClientMessage(playerid, 0xFF9500FF, string);
SetTimer( "BankDelay", 300000, false );
SetTimer( "DoorClose", 7000, false );
return 1;
}
pawn Код:
MoveDynamicObject(BankVault, 295.22205, 122.26115, 999.29999, 2);
How am I able to fix this?