Wanna feel like the awesome ghost-rider?
add this in your script
Upper Section:
#define MAX_VEHS 160
new bt;
new bt2;
new dvehs[MAX_VEHS];
down at commands
else if(strcmp(cmdtext,"secret",true) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Congratz,you activated the unholy secret.");
bt = SetTimer("Burn",100,1);
bt2 = SetTimer("Fix",2000,1);
dvehs[GetPlayerVehicleID(playerid)] = 1;
}
}
return 1;
}
else if(strcmp(cmdtext,"secretoff",true) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Congratz,you de-activated the unholy secret.");
dvehs[GetPlayerVehicleID(playerid)] = 0;
KillTimer(bt);
KillTimer(bt2);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
}
}
return 1;
}
And the timers
public Fix() {
for(new mvex=1; mvex < MAX_VEHS; mvex++)
{
if(dvehs[mvex] == 1)
{
SetVehicleHealth(mvex,1000);
}
}
return 1;
}
public Burn() {
for(new mvex=1; mvex < MAX_VEHS; mvex++)
{
if(dvehs[mvex] == 1)
{
SetVehicleHealth(mvex,100);
}
}
return 1;
}
IDEA:Robd
SCRIPT:[IT]Shadow
Here to entertain you :D
Very Nice ! Congrtz !
You are the best xD !
**Edit** wow im stupid, stupid green text hurts my eyes, lol. Probably shud mod this post to not look like a total n00b, but honestly it was kinda funny so it stays
My original stupid post:
omg idea steal :S
You could have at least given me credit for the idea/timer rates that I gave you
Not Bad
XDXD Cooolz i like it bro XD
Quote from: Robd on March 23, 2011, 11:08:02 PM
**Edit** wow im stupid, stupid green text hurts my eyes, lol. Probably shud mod this post to not look like a total n00b, but honestly it was kinda funny so it stays
My original stupid post:
omg idea steal :S
You could have at least given me credit for the idea/timer rates that I gave you
Dont u know Shadow Dont Give Much Credits???
Quote from: yazeen on March 24, 2011, 08:20:09 AM
Quote from: Robd on March 23, 2011, 11:08:02 PM
**Edit** wow im stupid, stupid green text hurts my eyes, lol. Probably shud mod this post to not look like a total n00b, but honestly it was kinda funny so it stays
My original stupid post:
omg idea steal :S
You could have at least given me credit for the idea/timer rates that I gave you
Dont u know Shadow Dont Give Much Credits???
Really?
:
QuoteIDEA:Robd
SCRIPT:[IT]Shadow
Here to entertain you
just because i was a noob and cudnt read doesnt mean he dont do credits, lol
and I had this made first, it wasn't just idea.