20.01.2011, 19:02
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/up", cmdtext, true, 10) == 0)
{
MoveObject(elevator, 2898,-2657.30175781, 45.42610168,0.97);//elevator goes up
SendClientMessage(playerid, 0xFF8000FF, "<Elevator> The elevator is going up!");
return 1;
}
if (strcmp("/down", cmdtext, true, 10) == 0)
{
MoveObject(elevator, 2898,-2657.30175781, 6.04528284,0.97);//Elevator goes back down.
SendClientMessage(playerid, 0xFF8000FF, "<Elevator> The elevator is going down!");
return 1;
}
return 1;
}