Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GameMode GTO Torcidas, Criado Por DoDo [GTO Torcidas - {MTA} BETA]
- -- Uso somente para o servidor GTO Torcidas
- -- Variaveis
- local torcida
- local chatRadius = 40 --Chat Limite
- playerid = getRootElement()
- -- Quando o Jogador entra no servido
- function OnPlayerConnect()
- local Posx, Posy, Posz = 1959.55, -1714.46, 10
- spawnPlayer(source, Posx, Posy, Posz)
- fadeCamera(source, true)
- setCameraTarget(source, source)
- outputChatBox("** Seja Bem vindo a GTO Torcidas [MTA] BETA - Acima Dos Rivais!, GTO Torcidas [MTA] BETA", source)
- outputChatBox("** Qualquer dúvidas, procure um adminstrador ou digite /ajuda.", source)
- outputChatBox("** Acesse o nosso site: www.gtotorcidas.cz.cc, e fique por dentro das nossas noticias!", source)
- outputChatBox("** Está sozinho ? Não sabe onde esta a sua torcida ? Use # ou ! para falar com a sua torcida!", source)
- outputChatBox("* " .. getPlayerName(source) .. " has joined the server")
- end
- addEventHandler("onPlayerConnect", getRootElement(), OnPlayerConnect)
- -- Quando o Jogador Sair
- function OnPlayerDisconnect( reason )
- outputChatBox ( getPlayerName( source ).." saiu do servidor ("..reason..")" )
- end
- addEventHandler( "onPlayerQuit", getRootElement(), OnPlayerDisconnect )
- -- Quando o Jogador da Spawn
- function OnPlayerSpawn ( thePlayer )
- local playerName = getPlayerName( thePlayer )
- if torcida == 1 then
- spawnPlayer(thePlayer, 0.0, 0.0, 0.0)
- end
- end
- addEventHandler("onPlayerSpawn", playerid, OnPlayerSpawn)
- -- Quando o Jogador Morre
- function OnPlayerDeath ( ammo, attacker, weapon, bodypart )
- if ( attacker ) then -- Se Alguem mato ele
- local tempString
- if ( getElementType ( attacker ) == "player" ) then
- tempString = getPlayerName ( attacker ).." Matou "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")"
- elseif ( getElementType ( attacker ) == "vehicle" ) then
- local tempString = getPlayerName ( getVehicleController ( attacker ) ).." Matou "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")"
- end
- if ( bodypart == 9 ) then
- tempString = tempString.."Execução [HS]"
- else
- tempString = tempString.." ("..getBodyPartName ( bodypart )..")"
- end
- outputChatBox ( tempString )
- else
- outputChatBox ( getPlayerName ( source ).." Se matou. ("..getWeaponNameFromID ( weapon )..") ("..getBodyPartName ( bodypart )..")" )
- end
- end
- addEventHandler ("onPlayerWasted", getRootElement(), OnPlayerDeath)
- --Prevensão
- addEventHandler( 'onPlayerVoiceStart', root,
- function()
- if isGuestAccount( getPlayerAccount(source) ) then
- cancelEvent()
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement