public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/up", true) == 0)
{
MoveObject(lift, 2306.1435546875, 2458.1452636719, 9.840250015288,3);
return 1;
}
if (strcmp("/down", cmdtext, true, 10) == 0)
{
MoveObject(lift, 2306.1435546875, 2458.1452636719, 37.590251922607,3);
return 1;
}
if(strcmp(cmdtext,"/enter", true) == 0);
{
if (IsPlayerInRangeOfPoint(playerid,2.0, -2882.216796875, 470.04101625, 5.6645107269287))
{
GameTextForPlayer(playerid, "~g~Shamal ~b~ betreten", 5000, 1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -2882.216796875, 470.04101625, 5.6645107269287);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist beim Shamal!");
}
}
return 1;
}
return 0;
}