25.07.2012, 21:24
Hey guys.
How can i create object id 18648 infront of player a little bit?
PS: I want to learn about Moving objects fast infront.
I guess it's Floatcos and Floatsin?
Thanks
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
if(IsPlayerInAnyVehicle(playerid))
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz,Float:vehz_rot;
GetVehiclePos(currentveh, vehx, vehy, vehz);
CreateObject(18648,vehx , vehy, vehz, vehz_rot);
}
}
return 1;
}
pawn Код:
CreateObject(18648,vehx , vehy, vehz, vehz_rot);
I guess it's Floatcos and Floatsin?
Thanks