elseif ( source == pages['home'].base_medic ) then
executeCommandHandler("medic", ThePlayer)
function medicGO(source)
for i, player in ipairs(getElementsByType("player")) do
local uj = getElementData ( player, "Job" )== "Medic" or false
if type(uj) == "boolean" then
if uj == true then
outputMessage("#ffffff[ Clientes #ffffff] - #FFFFFFO Jogador #ffffff"..getPlayerName(source).." #ffffffChamou Por um Samu",player, 255, 255, 255, true )
outputMessage("#ffffff[ Clientes #ffffff] - #FFFFFFDigite /Localizar "..getPlayerName(source).." #ffffffPara Marcar O Jogador No Mapa",player, 255, 255, 255, true )
end
end
end
end
addCommandHandler("medic",medicGO)
--------------------------------------------------------------------
function Comandomedic ( ThePlayer )
outputMessage("#ffffff[ Aviso #ffffff] - #FFFFFFOs SAMU's Foram Avisados, Aguente firme", ThePlayer, 255, 255, 255, true )
end
addCommandHandler("medic", Comandomedic )
this would be on a cell phone, when the player clicks on the icon he calls a doctor.
but I can not make it work :c
Help me.