hallo,
ich habe diesen /carinfo befehl bei mir:
if(!strcmp(cmd, "/carinfo", true))
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /CarInfo [CarID]");
new i = Geti(strval(tmp));
SendClientMessage(playerid,RED,"______________________________________________________________");
format(str, sizeof str, "Model: %d, X: %0.2f, Y: %0.2f, Z: %0.2f, A: %0.2f", PlayerCar[i][model], PlayerCar[i][px], PlayerCar[i][py], PlayerCar[i][pz], PlayerCar[i][pa]);
SendClientMessage(playerid, RED, str);
format(str, sizeof str, "Besitzer: %s, Lock: %d, Tank: %d%%, ID: %d, Preis: %d, VehicleID: %d, Nummernschild: %s-%d", PlayerCar[i][Key], PlayerCar[i][Lock], PlayerCar[i][Fuel], PlayerCar[i][NSID], PlayerCar[i][BuyPrice], PlayerCar[i][vid], PlayerCar[i][ABC], PlayerCar[i][NSID]);
SendClientMessage(playerid, RED, str);
new stri[15], spritart = PlayerCar[i][FuelType]; if(spritart) stri = "Benzin"; else if(spritart == 2) stri = "Diesel"; else if(spritart == 3) stri = "Autogas";
format(str, sizeof str, "Job Car: %d, Job: %d, Fraktions Car: %d, Fraktion: %d, Kraftstoff: %s, Abgeschleppt = %d", PlayerCar[i][JobCar], PlayerCar[i][Job], PlayerCar[i][FrakCar], PlayerCar[i][Frak], stri,PlayerCar[i][Towed]);
SendClientMessage(playerid, RED, str);
SendClientMessage(playerid,RED,"______________________________________________________________");
return 1;
}
else
{
return SendClientMessage(playerid,COLOR_GRAD1,"* Du bist kein Administrator!");
}
}
nun möchte ich denn aber so dass der die info's bei den fahrzeug anzeigt in dem ich rinn sitze.
mfg