All pastes #919521 Raw Edit

Stuff

public text v1 · immutable
#919521 ·published 2008-02-26 21:14 UTC
rendered paste body
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (newkeys & KEY_FIRE)
	{
	new Float:x,Float:y,Float:z,Float:a;
	GetPlayerPos(playerid,x,y,z);
	GetPlayerFacingAngle(playerid,a);
    CreateObject(1634,floatadd(floatmul(floatsin(-a, degrees), 4.0), x),floatadd(floatmul(floatcos(-a, degrees), 4.0), y), z,a,a,a);
    
	}
}