10.12.2009, 08:11
It's easy.
Top of your script:
OnGameModeInit()
OnPlayerCommandText.
This is just an exemple that I made for like 0.1 seconds
Top of your script:
pawn Код:
new Gate1;
pawn Код:
Gate1 = CreateObject(ObjectID, X, Y, Z, rX, rY, rZ);
pawn Код:
if (strcmp("/movegate", cmdtext, true) == 0)
{
MoveObject(Gate1, newX, newY, newZ, speed);
return 1;
}
This is just an exemple that I made for like 0.1 seconds