Hola Amigos Hoy Vengo A Traerles Este Scrip Para El Evento De Carreras Espero Y Les Guste
Hola Amigos Como Veran Soy Nuevo Y Aqui Les Traigo Este Scrip Para Empesar Entren A Su Carpeta De Su Ot Y Entran En Data - Talkactions - Scrips - Asen Una Carpeta Con El Nombre De Concursos La Abren - Copean Un Archivo Lua Y Copean Esto De Avajo Y Lo Pegan En Ese Archivo (La Rayas No Van Por Si Seles Ocurre Copiarlas xD).
_____________________________________________________________________
function onSay(cid, words, param)
local posx = getGlobalStorageValue(75311)
local posy = getGlobalStorageValue(75312)
local posz = getGlobalStorageValue(75313)
local evtpos = {x=272, y=548, z=7} <-- Esa Es La Posicion Donde Aparesera
El Player La Tienen Que Cambiar
if words == '!carrera' then
if getGlobalStorageValue(75310) ~= 9 then
doPlayerPopupFYI(cid, "No ahi eventos por el momento.")
else
doTeleportThing(cid,evtpos)
end
elseif words == '/eventx' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75311, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/eventy' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75312, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/eventz' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75313, param)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif words == '/carrera' then
if param == 'on' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75310, 9)
doTeleportThing(cid,evtpos)
doBroadcastMessage(' '.. getCreatureName(cid) ..' Ha ACTivado el concurso de: carrera para entrar di: !carrera', MESSAGE_EVENT_ADVANCE)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
elseif param == 'off' then
if getPlayerAccess(cid) >= 3 then
setGlobalStorageValue(75310, 0)
doBroadcastMessage(' '.. getCreatureName(cid) ..' Ha DESactivado el concurso de: carrera', MESSAGE_EVENT_ADVANCE)
else
doPlayerSendCancel(cid,'You not have access for use this command.')
end
end
end
return TRUE
end
_____________________________________________________________________
Al Archivo Le Ponen El Nombre De carrera.lua
_____________________________________________________________________
Aora Entran Otraves A Talkations Y Abren El Talkations.xml Y Pegan Esto Donde Dise Concursos Si No Disen Ponganlo Asi
<!-- Concursos -->
<talkaction words="!carrera" script="concursos/carrera.lua" />
_____________________________________________________________________
Bueno Creo Que Eso Es Todo Espero Y Les Aiga Gustado Este Post Si Les Gusto Denme Rep Bye...
For: God Leader