how to do that ???

and another thing, how to make if player pressed f button he will get +1000 money ? pls i need those scripts to make fun thing in my script

edited 1×, last 04.04.17 12:32:24 pm
addhook("objectkill","npckill") function npckill(oid,pid) 	if pid > 0 then -- If object is killed by a player 		if object(oid,"type") == 30 then -- If object is NPC 			parse("setmoney "..pid.." "..player(pid,"money")+1000)) -- Adds $1000 to the player's money, game automatically caps to $16k 		end 	end end
addhook("flashlight","flcash") function flcash(pid) 	parse("setmoney "..pid.." "..player(pid,"money")+1000)) end