Show hitman.lua syntax highlighted
-- This script tests to see if the player has the mission
-- to hitman. If he has this mission, and kills the marked man
-- it is marked as a success.
-- Definitions --
NOTASSIGNED = -1;
INPROGRESS = 0;
COMPLETED = 1;
FAILED = 2;
-- bind the player
player.Init();
-- test if the player has this mission --
if ( player.HasMission("data/scripts/hitman_mission/hitman") )
then
player.SetMissionStatus( "data/scripts/hitman_mission/hitman", COMPLETED );
console.Exec("echo Mission update!" );
end
See more files for this project here