-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
if make this. its working 100% addEventHandler('onPlayerConnect', getRootElement(), function() local country = exports.admin:getPlayerCountry(source) if not (country == SA) then cancelEvent( true, "this server not allowed to your country!" ) end end )
-
hi guys i have this script but not working ! why ? addEventHandler('onPlayerConnect', getRootElement(), function() local country = exports.admin:getPlayerCountry(source) if (country == SA) then cancelEvent( true, "this server not allowed to your country!" ) end end )
-
https://wiki.multitheftauto.com/index.ph ... /Main_Page
-
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
ala8alb ili m3aya mastanas yal3ab fi servers drift mta3 3arab 7amdolah konet m3ah raw radou 100% so3odi THX -
script working but can't connect file and this if delete file normally auto create but tell me outputDebugString ( "Failed to connect to file.db", 3 ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) connection = dbConnect( "sqlite", "file.db" ) if ( connection )then dbExec ( connection, "..." ) - JUST FOR EXMPLE outputDebugString ( "Successfully connected to file.db" ) else outputDebugString ( "Failed to connect to file.db", 3 ) end end )
-
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
3aichek -
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
hadha 100% fi SRC ta7ki bil tounsi takal mute mta3 10 min -
WTF mnin jat hadhi
-
hi guys. this script not working. why ? exports [ "scoreboard" ]:addScoreboardColumn ( "Occupation", root, 2, occupation, 70 ) function updatePlayersACLscore ( ) for index, player in ipairs ( getElementsByType "player" ) do setElementData ( player, "Occupation", getElementData ( player, "getPlayerACL") ) end end setTimer ( updatePlayersACLscore, 2500, 0 ) function updatePlayersACL ( ) for index, player in ipairs ( getElementsByType "player" ) do local accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" ) ) then setElementData ( player, "getPlayerACL", Console ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then setElementData ( player, "getPlayerACL", Admin ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" ) ) then setElementData ( player, "getPlayerACL", SuperModerator ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Moderator" ) ) then setElementData ( player, "getPlayerACL", Moderator ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Soldier" ) ) then setElementData ( player, "getPlayerACL", Soldier ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Police" ) ) then setElementData ( player, "getPlayerACL", Police ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Mechanic" ) ) then setElementData ( player, "getPlayerACL", Mechanic ) elseif isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Everyone" ) ) then setElementData ( player, "getPlayerACL", Player ) elseif isGuestAccount ( getPlayerAccount ( player ) ) then setElementData ( player, "getPlayerACL", Guest ) else setElementData ( player, "getPlayerACL", N/A ) end end end setTimer ( updatePlayersACL, 500, 0 )
-
hi guys i ave problem. if i sell car i can sell again ! SERVER function sellSwitch (cost) if not (isGuestAccount (getPlayerAccount (source))) then if (getAccountData(getPlayerAccount (source), "funmodev2-car") ~= nil) then setAccountData (getPlayerAccount(source), "funmodev2-car", nil) givePlayerMoney ( source, tonumber (cost) ) setElementData (source, "hisCar", nil) removeElementData (source, "hisCar") outputChatBox ("You sell your car.", source, 255, 0, 0) else outputChatBox ("You dont have a car.", source, 255, 0, 0) end end end addEvent("sellSwitch",true) addEventHandler("sellSwitch",getRootElement(),sellSwitch )