lol i didnt think of that...
it will kill the driver... i will rescript it later.... EDIT: fixed!!! sets your pos right where the car was after explosion... TESTED* |
-.-
Something I was going to make, but maybe I'll make it anyway. ![]() Edit: 1 download. Lol. Anyways, WTF! Delete all the shit you don't need, and your indentation is fucking shit. D: |
//RCXDRCXDRCXD RCXDRCXDRCXD RCXD RCXD RCXDRCXDRCXD
//RCXD RCXD RCXD RCXD RCXD RCXD RCXD
//RCXDRCXDRCXD RCXD RCXDRCXD RCXD RCXD
//RCXDRCXD RCXD RCXDRCXD RCXD RCXD
//RCXD RCXD RCXD RCXD RCXD RCXD RCXD
//RCXD RCXD RCXDRCXDRCXD RCXD RCXD RCXDRCXDRCXD
#include <a_samp>
new RCXD;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" RC-XD FS by [MNC]Yulda ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rc-xd", cmdtext, true, 10) == 0)
{
new LVehicleID;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
LVehicleID = CreateVehicle(441, X+3,Y,Z, 0, -1, 50, -1);
PutPlayerInVehicle(playerid,LVehicleID,0);
SetVehicleVirtualWorld(LVehicleID, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(LVehicleID, GetPlayerInterior(playerid));
RCXD = 1;
new playername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"~r~%s ~y~>>> RC-XD in bound!", playername);
GameTextForAll(string,2500,3);
SendClientMessage(playerid,0xFFFF00AA,"Use LMB[FIRE] Key to explode the RC-XD!!!");
return 1;
}
return 0;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (RCXD == 1)
{
if ( (newkeys & KEY_FIRE) && IsPlayerInAnyVehicle(playerid) )
{
new Float:burnx, Float:burny, Float:burnz;
GetPlayerPos(playerid,burnx, burny, burnz);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
SetPlayerPos(playerid, burnx, burny, burnz+2);
RCXD = 0;
}
return 1;
}
return 1;
}
a clean verison lol anyways nice job i just cleared up some stuff
|
2 Downloads, I wanted to see if the script was the same as mine, what isn't the case.
Also, taking a look at this, I'm quite 99% positive it DOES kill you rofl. PS: Another notice, this looks like as it works in ANY vehicle, not only in the RC vehicle you want. |