emad10 Posted November 18, 2012 Share Posted November 18, 2012 addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end ) انا ابغي ان ذا السلاح لفريق الشرطه فقط grove فريق مايقدر يشتريه Link to comment
emad10 Posted November 18, 2012 Author Share Posted November 18, 2012 ما عرفت استخدمه Link to comment
abu5lf Posted November 18, 2012 Share Posted November 18, 2012 if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then -- etc end Link to comment
MrCor Posted November 18, 2012 Share Posted November 18, 2012 تفضل addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end ) Link to comment
emad10 Posted November 18, 2012 Author Share Posted November 18, 2012 addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then else outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end end ) Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 اول شي انت في تيم الشرطة و تيم الشرطة لازم يكون اسمه Police و معاك فلوس و بعدين جرب Link to comment
emad10 Posted November 18, 2012 Author Share Posted November 18, 2012 صار ما يشتريه بالمرة Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 شوف السطر السابع مكتوب if ( getPlayerTeam(source) == getTeamFromName("Police") ) then و السطر الثامن مكتوب else ؟؟ Link to comment
emad10 Posted November 18, 2012 Author Share Posted November 18, 2012 ابغيه اذا ضغط على السلاح وهو في فريق غير الشرطه يجيه كلام ان ما يقدر يشتريه Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 ها ذا الي تبيه addEvent("give",true) addEventHandler("give",root, function () local money = getPlayerMoney(source) if ( getPlayerTeam(source) == getTeamFromName("Police") ) then if ( money >= 1000 ) then takePlayerMoney(source,1000) giveWeapon(source,31,1000) setPedWeaponSlot(source,getSlotFromWeapon(31)) else outputChatBox("No Money") end else outputChatBox("You Are Not A Cop") end end ) Link to comment
Mr.T9 Posted November 18, 2012 Share Posted November 18, 2012 addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then else outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end end ) جرب هذا addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then end outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end ) Link to comment
./BlackBird# Posted November 18, 2012 Share Posted November 18, 2012 هذا اذا كان في شرطي يحط اند يعني ماله معنى الصح حق طلال Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now