Something wrong here?
#1

Код:
dcmd_bomb(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 97.2593,1920.5094,18.1596))
	  	{
	  	  if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You can't plant a bomb when your in a vehicle!");
	  	  if(GateAttack == 2) return	SendClientMessage(playerid, COLOR_RED, "ERROR: The gate has blown up!");
				if(GetPlayerTeam(playerid) == 2) SendClientMessage(playerid, COLOR_RED, "ERROR: You can open/close the gate via the control center!"); 
				ApplyAnimation(playerid,"BOMBER","BOM_Plant",5.0,0,1,1,0,0);
				bombtimer = SetTimerEx("GateBomb", 3000, true,"d",playerid);
				SendClientMessage(playerid, COLOR_YELLOW, "Placing a bomb takes 3 seconds!"); 
  		}
  		
	return 1;
}
Problem is that everything works fine except the ApplyAnimation.
First time using the command nothing happens.
Second time it works like a charm, it does it all the way.
Does the animation needs to be "preloaded" or something like that?
Reply


Messages In This Thread
Something wrong here? - by GMusicOn - 11.02.2010, 15:30
Re: Something wrong here? - by Correlli - 11.02.2010, 15:31
Re: Something wrong here? - by GMusicOn - 11.02.2010, 15:35

Forum Jump:


Users browsing this thread: 3 Guest(s)