23.05.2010, 01:43
pawn Код:
new door;
public OnGameModeInit()
{
door = CreateObject(....)
return 1;
}
public OnPlayerCcommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opendoor", true) == 0)
{
MoveObject(door, ....)
return 1;
}
return 0;
}