origin of players
how can i place a model at both the T's spawn place and a CT's spawn place, no matter what map? thanks
|
Re: origin of players
Hook when entities are spawned, then if it finds an "info_player_start" (CT spawn) and an "info_player_deathmatch" (T spawn), get the origin and use that to spawn one of your models.
|
Re: origin of players
Quote:
sorry im newby |
Re: origin of players
Using this will set a model on every spawn point. If you only want one then make a variable to check if it should spawn more or not.
PHP Code:
|
Re: origin of players
thank you i will test this tonite :mrgreen:
|
Re: origin of players
yea i got some errors and this is going to turn into a ctf plugin so im gonna need a way to make the flag model stick to a person
here is the code and it got some errors: Code:
/home/groups/amxmodx/tmp3/textienbE6.sma(30) : error 047: array sizes do not match, or destination array is too smallPHP Code:
|
Re: origin of players
I tested this and it works. Barney models are spawned on every player spawn :P Also, since you seem to be making flag models then I would manually set them if I were you. This way you can put them exactly where you want.
PHP Code:
|
| All times are GMT -4. The time now is 21:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.