Wanna feel like the awesome ghost-rider?
add this in your script
Upper Section:
down at commands
And the timers
IDEA:Robd
SCRIPT:[IT]Shadow
Here to entertain you
add this in your script
Upper Section:
Code Select
#define MAX_VEHS 160
new bt;
new bt2;
new dvehs[MAX_VEHS];
down at commands
Code Select
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
Code Select
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
