Hey Leute,
hab ein kleines Problem mit meinem Motor system
sobald ich aus meinem auto aussteige geht der motor aus bzw. ich muss ihn immer neu starten wenn ich wieder einsteige
bitte um hilfe
MFG
Hey Leute,
hab ein kleines Problem mit meinem Motor system
sobald ich aus meinem auto aussteige geht der motor aus bzw. ich muss ihn immer neu starten wenn ich wieder einsteige
bitte um hilfe
MFG
Was steht bei dir unter:
public OnPlayerExitVehicle(playerid, vehicleid)
?
Da steht:
if(GetPlayerState(playerid) == 1)
{
return 1;
}
if(gGas[playerid] == 1)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
}
if(speedcount[playerid] > 0)
{
speedcount[playerid] = 0;
}
if(Spieler[playerid][sDuty] == 1)
{
Spieler[playerid][sDuty] = 0;
}
return 1;
}
Zeig mal dein ganzes Motorsystem.
if(strcmp(cmd, "/motor", true) == 0)
{
if(PlayerInfo[playerid][pAuto] == 1)
{
OnPlayerCommandText(playerid,"/stopauto");
GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~r~Motor ausgeschaltet!",2000,3);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s schaltet den Motor aus.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerInfo[playerid][pAuto] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Versucht den Motor zu starten.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~p~Motor wird gestartet...",3700,3);
SetTimerEx("Starting",2600,0,"i",playerid);
Audio_Play(playerid, 4, false, false, false);
OnPlayerCommandText(playerid,"/loadpl");
}
return 1;
public "starting" etc.. fehlt. sende den uns auch mal
sry
public Starting(playerid)
{
new RandomStart;
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
RandomStart = random(12);
switch(RandomStart)
{
case 0,1,2,3,4,5,6,7,8,9:
{
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
OnPlayerCommandText(playerid,"/startcar");
TogglePlayerControllable(playerid,1);
GameTextForPlayer(playerid,"~g~Motor wurde Gestartet", 1000, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s startet den Motor.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
case 10,11,12:
{
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GameTextForPlayer(playerid,"~r~Dein Motor ist abgesoffen", 2500, 1);
format(string, sizeof(string), "* %s Motor ist abgesoffen.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
}
return 1;