26.02.2009, 20:16
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/eup", true) == 0)
{
MoveObject(elevator, 1840.252563, -1662.095337, 112.666771, 3.00);
SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait.");
return 1;
}
if(strcmp(cmdtext, "/edown", true) == 0)
{
MoveObject(elevator, 1840.252563, -1662.095337, 58.791744, 3.00);
SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait.");
return 1;
}
return 0;
}