How to define a vehicle with a special vehicle id
#3

pawn Код:
command(hotwire, playerid, params[])
    {
        if(GetPlayerVehicleID(playerid) == Hotwire1)
        {
            SetTimerEx("Hotwiring", 2000, false, "i", playerid);
            GameTextForPlayer(playerid, "~r~Hotwiring", 5000, 1);
        }
    }
   
    forward Hotwiring(playerid);
    public Hotwiring(playerid)
    {
        new string[200], pstring[200];
        SetTimerEx("Hotwiring1", 1000*5, false, "i", playerid);
        format(string, sizeof(string), "You have taken out your toolbox, afterwards taking out a hammer from the toolbox, smashing the bottom dashboard.");
        SendClientMessage(playerid, ACTION, string);
        format(pstring, sizeof(pstring), "%s has taken out his toolbox, afterwards taking out a hammer from it, smashing the bottom dashboard.");
        SetPlayerChatBubble(playerid, pstring, ACTION, 30.0, 1000*5);  
    }
   
    forward Hotwiring2(playerid);
    public Hotwiring2(playerid)
    {
        new string[200], pstring[200];
        SetTimerEx("Hotwiring2", 1000*5, false, "i", playerid);
        format(string, sizeof(string), "hi");
        SendClientMessage(playerid, ACTION, string);
        format(pstring, sizeof(pstring), "hi");
        SetPlayerChatBubble(playerid, pstring, ACTION, 30.0, 1000*5);
    }
What I did so far
Reply


Messages In This Thread
How to define a vehicle with a special vehicle id - by EmilLykke - 29.01.2014, 19:39
Re: How to define a vehicle with a special vehicle id - by jakejohnsonusa - 29.01.2014, 19:44
Re: How to define a vehicle with a special vehicle id - by EmilLykke - 29.01.2014, 19:47
Re: How to define a vehicle with a special vehicle id - by jakejohnsonusa - 29.01.2014, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)