hallo habe mir mal ein PickUp gemacht mit Command und GameText möchte wissen obs es so richtig ist...
//ganz oben
new rpickup;
//OnGameModeInit
rpickup = CreatePickup(2423, 2541.24,3652.26,2154.12);
//OnPlayerPickUpPickup
if(pickupid == rpickup)
{
GameTextForPlayer(playerid, "Benutze /repair um dein Auto zu reparieren",1000,5);
}
//OnPlayerCommandText
if(strcmp(cmd, "/repair", true) == 0)
{
if(IsPlayerConnected))
{
if(PlayerToPoint(3.0,playerid,2541.24,3652.26,2154.12))
{
SetVehicleHealth(playerid, 1000);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_RED, "Du hast dein Auto repariert");
}
}
}
hoffe jemand weis es ...