الكود حق طه
بس عدلت عليه
تفضل
fixx = function(source)
Player = getPlayerTeam ( source )
Money = getPlayerMoney(source)
car = getPedOccupiedVehicle(source)
rX, rY, rZ = getElementRotation(car)
team = getTeamFromName ( "123" )
if Player == team then
if car then
if Money >= 5000 then
takePlayerMoney(source, 5000)
fixVehicle(car)
setElementRotation(car, 0, 0, (rX > 90 and rX < 270) and (rZ + 180) or rZ)
outputChatBox("تم تصليح السيارة وخصم 5000",source,0,255,0)
else
outputChatBox("لا تملك مال كافً",source,255,0,0,true)
end
else
outputChatBox("لا تملك سيارة",source,255,0,0,true)
end
else
outputChatBox("يجب ان في هذا الفريق (اسم الفريق)",source,255,0,0,true)
end
end
addCommandHandler("fix",fixx)