Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: mrockxkingbutt on April 03, 2013, 11:07:43 am
-
!explode New Function I Am Trying To Make Like San Andrease
[pawn] else if (strcmp(cmd, "!explode", true) == 0)
{
new i;
for( i = 1; i < 200; i++ )
{
SetVehicleHealth( i, 0.0 );
}
SendClientMessageToAll(GREEN, " WORLD IS EXPLODING RUN FOR YOUR LIFES ");
return 1;
}
[/pawn]
56 % Credits To Stormeus
44 % Credits To Me
-
Are you Kidding Me ??? ? It Takes Many Lines ???
-
Are you Kidding Me ??? ? It Takes Many Lines ???
A for loop would probably be handy here.
[pawn]
else if (strcmp(cmd, "!explode", true) == 0)
{
new i;
for( i = 1; i < 170; i++ )
{
SetVehicleHealth( i, 0.0 );
}
SendClientMessageToAll(GREEN, " WORLD IS EXPLODING RUN FOR YOUR LIFES ");
return 1;
}
[/pawn]
-
THANKS FOR THIS YAAAA
-
Nice