Forum

> > CS2D > Scripts > Get weapon with say request
Forums overviewCS2D overview Scripts overviewLog in to reply

English Get weapon with say request

1 reply
To the start Previous 1 Next To the start

old Get weapon with say request

ShouldBeNew
BANNED Off Offline

Quote
So yeah i have got a bunch of request.
But anyways


I want a script so if the player types something like
!get_m249 he will get the m249. Note that i don't want all weapons so the player gets them.

old Re: Get weapon with say request

Marcell
Super User Off Offline

Quote
1
2
3
4
5
6
7
addhook("say","GetWeapon")
function GetWeapon(id,txt)
	if txt==("!m_249") then 
		parse("equip "..id.." 40"); 
		return 1 
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview