26.01.2015, 18:35
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,
How am I able to fix this?
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);