Help with this engine script
#3

Well, this whole script is about starting the engine. So I don't know what to highlight. Maybe these?

Код:
					if(gEngine[playerid] == 1) { return 1; }
					PutPlayerInVehicle(playerid, newcar, 0);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "* %s Beindнtja a jбrmű motorjбt.", sendername);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					SetPlayerChatBubble(playerid, "Beindнtja a motort.", COLOR_PURPLE, 80.0, 10000);
					SetTimerEx("StartingTheVehicle",3500,0,"i",playerid);
					GameTextForPlayer(playerid, "~w~~n~~n~~n~~n~Beindul a jбrmű motorja...",3500,3);
					gEngine[playerid] = 1;
					return 1;
Код:
public StartingTheVehicle(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new RandomStart;
    		new string[256];
    		new sendername[MAX_PLAYER_NAME];
            RandomStart = random(4);
            switch(RandomStart)
            {
                case 0,1,2,3:
                {
                    engineOn[GetPlayerVehicleID(playerid)] = true;
                    TogglePlayerControllable(playerid, true);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s beindнtotta a jбrmű motorjбt.",sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    SetPlayerChatBubble(playerid, "beindнtotta a jбrművet.", COLOR_PURPLE, 80.0, 10000);
                    gEngine[playerid] = 0;
                }
            }
        }
		else
		{
		    gEngine[playerid] = 0;
		}
    }
    return 1;
}
Reply


Messages In This Thread
Help with this engine script - by Wolf0211 - 02.09.2017, 10:52
Re: Help with this engine script - by Kane - 02.09.2017, 10:55
Re: Help with this engine script - by Wolf0211 - 02.09.2017, 11:00
Re: Help with this engine script - by Kane - 02.09.2017, 11:18
Re: Help with this engine script - by Wolf0211 - 02.09.2017, 11:21
Re: Help with this engine script - by Kane - 02.09.2017, 11:35
Re: Help with this engine script - by Wolf0211 - 02.09.2017, 11:55
Re: Help with this engine script - by Kane - 02.09.2017, 11:56
Re: Help with this engine script - by Wolf0211 - 02.09.2017, 12:05

Forum Jump:


Users browsing this thread: 2 Guest(s)