Explosion with RC_TANK
#6

Код:
//=============================================================//

#include <a_samp>

#pragma tabsize 0
#define RC_TANK   564
new Float:X, Float:Y, Float:Z;
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new vehicleID = GetPlayerVehicleID(playerid);
if(IsVehicleRc(vehicleID) || GetVehicleModel(vehicleID) == RC_TANK){
if(GetVehicleModel(vehicleID) != RC_TANK){
	if (PRESSED(KEY_FIRE)) {
	GetXYInFrontOfPlayer(playerid,X,Y,5);
	CreateExplosion(X, Y, Z, 12, 5);
	}
}
}
	return 1;
}

IsVehicleRc( vehicleid ){
  new model = GetVehicleModel(vehicleid);
  switch(model){
  case RC_TANK: return 1;
  default: return 0;
    }

  return 0;
}
//==========================================================//
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$DI26.0266\t ank.pwn(16) : error 017: undefined symbol "GetXYInFrontOfPlayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
Explosion with RC_TANK - by _Sami_ - 11.12.2009, 05:36
Re: Explosion with RC_TANK - by Joe Staff - 11.12.2009, 06:09
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:38
Re: Explosion with RC_TANK - by yom - 11.12.2009, 06:41
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:44
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 06:59
Re: Explosion with RC_TANK - by _Sami_ - 11.12.2009, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)