25.07.2012, 21:56
Fixed. but after removing currentveh
PS: still looking for help floatsin and floatcos to speed move the object, darn it's 3:10 AM.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:vehx, Float:vehy, Float:vehz,Float:vehz_rot;
GetXYInFrontOfPlayer(playerid,vehx,vehy,5);
CreateObject(18648,vehx , vehy, vehz, vehz_rot,0,0,0);
}
}
return 1;
}