local marker = createMarker(x,y,z -1,"cylinder",2,0,0,255,255);
addEventHandler("onClientMarkerHit",marker,
function ( ThePlayer )
if ( getElementType ( ThePlayer ) == "player" ) then
bindKey ( "1" , "down" , CreateFunc );
outputChatBox("* تم التفعيل");
end;
end
);
addEventHandler("onClientMarkerLeave",marker,
function ( ThePlayer )
if ( getElementType ( ThePlayer ) == "player" ) then
unbindKey ( "1" , "down" , CreateFunc ) ;
outputChatBox("* تم التعطيل");
end;
end
);
function CreateFunc ( )
local x,y,z = getElementPosition ( localPlayer );
setTimer(createProjectile,5000,1,localPlayer,16,x,y,z);
end;