Gate öffnet sich aber geht net zu
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/aplatz",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Admin Platz",4000,6);
return SetVehiclePos(vehicleid,3088.3850,-976.0178,32.1193);
}
SetPlayerPos(playerid,3088.3850,-976.0178,32.1193);
GameTextForPlayer(playerid,"Admin Platz",4000,6);
return 1;
}
if(strcmp(cmdtext,"/open",true)==0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(tor[1],2914.9375, -1009.154296875, -11.992519,7.5);
}
return 1;
}
if(strcmp(cmdtext,"/close",true)==0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(tor[1],2914.93823242,-1009.15496826,-11.992519,13);
}
return 1;
}
return 0;
}