No
+ بعض الكلام ما فهمته
+ انا اسويه بدون ويكي اكرهه كله الوان يجيب المرض بس اوقات اقراه
اللي ابي اوصلةةة
انة الكلنت مافية ارقمنت الاعب مثل ماتقول وبسس #
@ Dawi
Did you read the wiki?
Client
bool outputChatBox ( string text [, int r=231, int g=217, int b=176, bool colorCoded=false ] )
Required Arguments
text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat.
Optional Arguments
NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments.
r: The amount of red in the color of the text. Default value is 231.
g: The amount of green in the color of the text. Default value is 217.
b: The amount of blue in the color of the text. Default value is 176.
colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used.
function toggleVehicleLocked(thePlayer)
playervehicle = getPlayerOccupiedVehicle(thePlayer);
if (playervehicle) then
if (isVehicleLocked(playervehicle)) then
setVehicleLocked(playervehicle,false);
exports.hud_messages:showBox(Vehicle unlocked.,thePlayer, 0, 255, 0, 200)
else
setVehicleLocked(playervehicle,true);
exports.hud_messages:showBox(Vehicle locked.,thePlayer, 255, 0, 0, 200)
end
end
end
If you want you can change the command to "!DD" changing the line 3. And for give admin rights add it to ACL.xml as resource.
Yes,I Know But He Want The Script When Player Type "DD" In Main Chat .
Try this :
local zone = createColSphere( 1588.1999511719, -1638.5, 15.10000038147, 15.0 )
function shapeHit(hitPlayer, matchingDimension)
if getElementType(hitPlayer) == "player" then
local v = getPedOccupiedVehicle(hitPlayer)
if (v) then
removePedFromVehicle ( hitPlayer )
setElementPosition ( v, 1569, -1690, 6 )
warpPedIntoVehicle ( hitPlayer, v )
else
setElementPosition( hitPlayer, 1569, -1690, 6 )
end
end
end
addEventHandler( 'onColShapeHit', zone, shapeHit )
addEventHandler('onPlayerChat',root,
function ( msg )
if ( msg == "DD" ) then
redirectPlayer (source,"192.168.1.1",22003)
outputChatBox ("*#000000 [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has been redirect to DD server #ff0000!!",getRootElement(), 255, 0, 0, true )
end
end
)
Server Side Script And Should Give The Script Admin Right's! How To Use? Type In The Chat Box "DD" !