Hallo liebes MTA Forum, ich hatte die Idee das wenn sich ein Terrorist scharf macht über seinem Namen eine Schrift kommt. Beispielsweise : Wenn ich mich scharf mache kommt : "..." und wenn ich scharf bin "!!! Terrorist !!!" nur habe ich keinen Plan wie ich das machen soll.
Deswegen wollte ich fragen ob ihr mir dabei behilflich sein könnt.
Das normale Script:
Lua
function arm_func ( player )
if isTerror ( player ) then
if isKeyBound ( player, "mouse3", "up", explodeTerror ) then
outputChatBox ( "Bombe entschaerft!", player, 0, 125, 0 )
vioSetElementData ( player, "hasBomb", true )
unbindKey ( player, "mouse3", "up", explodeTerror )
elseif vioGetElementData ( player, "armingBomb" ) then
outputChatBox ( "Du machst die Bombe bereits scharf!", player, 125, 0, 0 )
elseif vioGetElementData ( player, "hasBomb" ) then
setTimer ( arm_bomb, 7500, 1, player )
vioSetElementData ( player, "armingBomb", true )
else
outputChatBox ( "Du hast keine Bombe!", player, 125, 0, 0 )
end
end
end
addCommandHandler ( "arm", arm_func )
function arm_bomb ( player )
if not isPedDead ( player ) and vioGetElementData ( player, "hasBomb" ) then
bindKey ( player, "mouse3", "up", explodeTerror, player )
outputChatBox ( "Bombe ist scharf!", player, 0, 125, 0 )
setPlayerNametagColor ( player, 200, 0, 0 )
vioSetElementData ( player, "hasBomb", false )
else
outputChatBox ( "Du hast keine Bombe/bist Tod!", player, 125, 0, 0 )
end
vioSetElementData ( player, "armingBomb", false )
end
Alles anzeigen
Dumme Kommentare braucht ihr gar nicht abgeben.