lol, looks like i forgot a chunk of script
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menupublic ToggleEngine(playerid,tmp)
{
new id;
id = GetPlayerVehicleID(playerid);
if(tmp == 0) {
KillVehicleEngine(id);
CarInfo[id][engineon] = 0;
}
else {
RemovePlayerFromVehicle(playerid);
PutPlayerInVehicle(playerid,id);
CarInfo[id][engineon] = 1;
}
return 1;
}
enum cInfo
{
gas
}
new CarInfo[here put the number of cars in your server][cInfo]
SetTimer("cargas",30000,true);
public cargas()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(PlayerInfo[i][onfoot] == 0) CarInfo[157][locked] = 1;
else {
new id;
id = GetPlayerVehicleID(i);
new szMsg[256];
CarInfo[id][gas] = CarInfo[id][gas] -1;
format(szMsg,sizeof(szMsg),"~o~Fuel ~r~%d",CarInfo[id][gas]);
GameTextForPlayerBottom(i,szMsg);
if(CarInfo[id][gas] < 1) {
KillVehicleEngine(id);
CarInfo[id][gas] = 0;
}
}
}
}
if(CarInfo[vehicleid][gas] < 1) {
ServerInfo[0][gas] = playerid;
SetTimer("engine",5000,false);
}
public engine()
{
new id;
SendClientMessage(ServerInfo[0][gas],COLOR_GREEN,"The engine dies, might want to check the fuel tank");
id = GetPlayerVehicleID(ServerInfo[0][gas]);
KillVehicleEngine(id);
ServerInfo[0][gas] = 100;
CarInfo[id][engineon] = 0;
return 1;
}
public log(text[256])
{
ServerInfo[0][line] = ServerInfo[0][line] +1;
new szMsg[256];
format(szMsg,sizeof(szMsg),"%d",ServerInfo[0][line]);
dini_Set("/chat.ini",szMsg,text);
}
ServerInfo[0][line] = dini_Int("/chat.ini", "line");
Quote from: yazeen on February 19, 2011, 02:05:18 PMI'm not so sure about his mental health /me runsLOL WTF are u nuts?
uploading a new script
if u dont know about about this ill say it to u* yazeen shouts: there is already a new script file with PAWNO[/s]
sorry about what i said this script is good for noobs
not just blank script its ready to use'* yazeen says : i take back what i said
public WantedBar(Float:data)
{
new x[256];
if (data == 0) x = "~b~>>>>>>";
else if (data == 1) x = "~b~>>>>>~w~>";
else if (data == 2) x = "~b~>>>>~w~>>";
else if (data == 3) x = "~b~>>>~w~>>>";
else if (data == 4) x = "~b~>>~w~>>>>";
else if (data == 5) x = "~b~>~w~>>>>>";
else if (data == 6) x = "~w~>>>>>>";
return x;
}