LOL HAHA
Jetzt bemerk ich das erst. HäÄ?! :DD
Moment, ich editier mal xD
Edit : Ich hab Editiert, aber Ingame spuckt er trzd ein "Den Command (blabla) scheint es nicht zu geben" aus..
public OnPlayerCommandText(playerid, cmdtext[])
{
new stringx[128];
format(stringx,sizeof(stringx),"Den Command (%s) scheint es nicht zu geben.",cmdtext);
return SendClientMessage(playerid,0xFFFFFFFF,stringx);
if (strcmp("/deagle", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFF8000FF, "Hier hast du eine Deagle.");
GivePlayerWeapon(playerid, 24, 99999);
if(!strcmp("/warmupverlassen",cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 11.0, 2387.5325,1143.3420,34.2529))
{
SendClientMessage(playerid,0xFF8000FF,"Willkommen am Spawn.");
SetPlayerPos(playerid, 1488.2256,716.4981,10.8203);
return 1;
}
else
{
SendClientMessage(playerid,0xFF8000FF,"Du bist nicht in der Warm Up Runde.");
}
return 1;
}
if (strcmp("/sirene", cmdtext, true, 10) == 0)
{
if(UCL[GetPlayerVehicleID(playerid)] == 0)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
UCL[GetPlayerVehicleID(playerid)] = 1;
}
else if(UCL[GetPlayerVehicleID(playerid)] == 1)
{
DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
UCL[GetPlayerVehicleID(playerid)] = 0;
}
}
}
return 1;
}