[HLEP] help in reload object
#5

In your gamemode file put this

Код:
new glass;
then under on GameModeInit

Код:
glass = CreateObject(yourobjectid, x, y, z, rx, ry, rz);
Then under OnPlayerCommandText

Код:
	if (strcmp("/createglass", cmdtext, true, 10) == 0)
	{
	DestroyObject(glass);
    CreateObject(yourobjectid, x, y, z, rx, ry, rz);
	return 1;
	}
Change the part in CreatObject to what you have, and the command /recreateglass to the command you want it to have.

I hope this helps.
Reply


Messages In This Thread
[HLEP] help in reload object - by ::hardyboy - 17.12.2009, 18:44
Re: help in reload object - by ::hardyboy - 17.12.2009, 18:56
Re: [HLEP] help in reload object - by Gergo1352 - 17.12.2009, 19:31
Re: [HLEP] help in reload object - by ::hardyboy - 17.12.2009, 19:32
Re: [HLEP] help in reload object - by Prumpuz - 17.12.2009, 20:31
Re: [HLEP] help in reload object - by ::hardyboy - 17.12.2009, 20:32
Re: [HLEP] help in reload object - by Camacorn - 17.12.2009, 21:00
Re: [HLEP] help in reload object - by Retardedwolf - 17.12.2009, 21:03
Re: [HLEP] help in reload object - by GTAguillaume - 17.12.2009, 21:08
Re: [HLEP] help in reload object - by ::hardyboy - 17.12.2009, 21:08

Forum Jump:


Users browsing this thread: 6 Guest(s)