habe keiner errors ...
hier ist die zeile von dem /o chat .. irgendwie kann jeder drinne schreiben aber es soll nur ein adminlevel 1336+ können...
ocmd:o(playerid, params[])
{
new string[128],nachricht,sender[MAX_PLAYER_NAME];
if(pInfo[playerid][Adminlevel] == 1336)return SendClientMessage(playerid,COLOR_ERROR,"Du bist kein Admin");
{
if(sscanf(params,"s",nachricht))return SendClientMessage(playerid,COLOR_GREEN,"INFO: /o [NACHRICHT]");
{
GetPlayerName(playerid, sender, sizeof(sender));
format(string,sizeof(string),"(( %s: %s ))",sender,nachricht);
SendClientMessageToAll(COLOR_GREEN,string);
}
}
return 1;
}
und die tore ...
new lspdtor1;
new lspdtor2;
//Tore//
lspdtor1 = CreateDynamicObject(980,1545.59167480,-1628.02954102,14.65621185,0.00000000,0.00000000,270.00000000);
lspdtor2 = CreateDynamicObject(980,1587.04907227,-1637.97668457,15.01041031,0.00000000,0.00000000,180.00000000);
ocmd:lspdauf(playerid,params[])
{
MoveObject(lspdtor1,1545.59167480,-1628.02954102,14.65621185-10,5);
SendClientMessage(playerid,COLOR_ERROR,"Das Haupttor is geöffnet");
return 1;
}
ocmd:lspdzu(playerid,params[])
{
MoveObject(lspdtor1,1545.59167480,-1628.02954102,14.65621185,5);
SendClientMessage(playerid,COLOR_ERROR,"Das Haupttor is geschlossen");
return 1;
}
ocmd:lspdgarageauf(playerid,params[])
{
MoveObject(lspdtor2,1587.04907227,-1637.97668457,15.01041031-10,5);
SendClientMessage(playerid,COLOR_ERROR,"Das Haupttor is geöffnet");
return 1;
}
ocmd:lspdgaragezu(playerid,params[])
{
MoveObject(lspdtor2,1587.04907227,-1637.97668457,15.01041031,5);
SendClientMessage(playerid,COLOR_ERROR,"Das Haupttor is geschlossen");
return 1;
}
hat jemand irgendwo ein fehler ? ._.