Hallo Brotfische.
Ich habe ein oder zwei Probleme...
mein erstes:
Ich habe einen Busbot instaliert nur er Connectet nicht.... es ist so einer der was Anhält die ganzen Codes dazu:
OnPlayerConnect
if(IsPlayerNPC(playerid))
{
gPlayerLogged[playerid] = 1;
return 1;
}
OnGameModeInit
ConnectNPC("Butbot123123","Busbot123123");
Butbot123123_veh = CreateVehicle(431,1061.72450000,-948.78970000,42.85520000,96.13680000,-1,-1,15);
OnPlayerSpawn
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Busbot123123", true))
{
PlayerInfo[playerid][pCarLic] = 1;
PlayerInfo[playerid][pJob] = 14;
PutPlayerInVehicle(playerid, Butbot123123_veh, 0);
PlayerInfo[playerid][pChar] = 61;
}
}
So das waren alle Codes
nun zu meinen zweiten Problem, das /unopark:
InGame kommt diese Meldung:
zuerst
http://www.pic-upload.de/view-18254484/sa-mp-024.png.html
danach
http://www.pic-upload.de/view-18254483/sa-mp-025.png.html
also wenn man /unopark macht dan kommt Server Unknow Command...
der Befehl im Script
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;
}