Hallo Liebes breadfish ich habe ein /unopark befehle drin aber wenn ich es ingame eingebe passiert nix? server unkown Command?
if(strcmp("/unopark", cmd, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new trailercar2 = GetPlayerVehicleID(playerid);
new carowner = GetDtCarOwner(trailercar2);
new slot = GetDtCarOwnerSlot(carowner,trailercar2);
if(PlayerCar[carowner][slot][CarArrest] == 1 && PlayerInfo[carowner][pRest] == 1)
{
PlayerCar[carowner][slot][CarPos_x] = -1469.7018;
PlayerCar[carowner][slot][CarPos_y] = 828.0703;
PlayerCar[carowner][slot][CarPos_z] = 6.8930;
PlayerCar[carowner][slot][CarArrest] = 0;
PlayerCar[carowner][slot][CarRotate] = 270;
if(carowner != 555)
{
OnPlayerCarUpdate(carowner);
SendClientMessage(carowner, COLOR_WHITE, "Ihr Auto wurde von einen Ordnungsbeamten freigegeben, sie können es nun am Roten Marker abholen!");
PlayerInfo[carowner][pRest] = 0;
SetPlayerCheckpoint(carowner,-1469.7018,828.0703,6.8930, 8.0);
SetVehicleToRespawn(trailercar2);
SetVehiclePos(trailercar2,-1469.7018,828.0703,6.8930);
SetVehicleVirtualWorld(trailercar2, 0);
SetTimerEx("PlayerCarSpawn",1000,0,"i",carowner);
}
}
}
}
return 1;
}