17.12.2009, 20:31
In your gamemode file put this
then under on GameModeInit
Then under OnPlayerCommandText
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.
Код:
new glass;
Код:
glass = CreateObject(yourobjectid, x, y, z, rx, ry, rz);
Код:
if (strcmp("/createglass", cmdtext, true, 10) == 0) { DestroyObject(glass); CreateObject(yourobjectid, x, y, z, rx, ry, rz); return 1; }
I hope this helps.