بس عجل ماله داعي الكلام الي فوق الماركر
edit :
جدي يصير؟
function consoleCreateMarker ( thePlayer, commandName )
if ( thePlayer ) then
local x, y, z = getElementPosition ( thePlayer )
local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 )
if ( theMarker ) then
outputConsole ( "Marker created successfully", thePlayer )
else
outputConsole ( "Failed to create marker", thePlayer )
end
end
end
addCommandHandler ( "createmarker", consoleCreateMarker )
end
function greetingHandler ( message )
outputChatBox ( "The client says: " .. message, source )
end
addEvent( "onGreeting", true )
addEventHandler( "onGreeting", getRootElement(), greetingHandler )
end
function consoleGiveCash ( thePlayer, command, amount )
givePlayerMoney ( thePlayer, amount )
end
addCommandHandler ( "givecash", consoleGiveCash )