- 19
- 0
- Версия SA-MP
-
- 0.3.7 (R1)
Код:
script_name("Test CMD")
script_version_number(228)
script_version("1.0")
script_authors("no")
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
active = 0
sampRegisterChatCommand("jinv", activatecmd)
while true do
wait(0)
if not isPauseMenuActive() and isPlayerPlaying(playerHandle) then
if active == 1 then
local valid, ped = getCharPlayerIsTargeting(PLAYER_HANDLE)
if valid and doesCharExist(ped) then
local result, id = sampGetPlayerIdByCharHandle(ped)
if result then
sampSendChat("/invite " ..id)
end
end
end
end
end
end
function activatecmd()
active = not active
end
Последнее редактирование: