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