Jump to content

script [Fs] == Raketomet Na Aute! == By S.g


Boss

Recommended Posts

Ahojte, dávam vam tu svoj uplne prvy ,[FS]

moznosti FS sú =

1. Na aute sa objavy RAKETOMET

2. Mozete strelat s auta pomocou Ľ.tlačidka na myške

======PRIKAZY=====

/gunon == zapne REKETOMET

/gunoff == vypne RAKETOMET

 

inštalacia== skopirujte všetko a prilepte to do Pawna [!V pawne nič pred vlozenim nesmie byť!]

a premente na amx. potom to dajte do filterstrip a do server.cfk napiste CARGUN [!alebo ako sa vola ten filtercstript!]

 

 

#include <a_samp>

#include <core>

#include <float>

 

new glob0[200];

 

new Float:glob320;

 

new Float:glob324;

 

new Float:glob328;

 

new Float:glob32C;

 

new Float:glob330;

 

new Float:glob334;

 

new glob338;

 

new Float:glob33C[200];

 

new glob65C[200] = { 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

 

new glob97C[200];

 

new globC9C;

 

new globCA0;

 

new globCA4;

 

new Float:globCA8;

 

new Float:globCAC;

 

new Float:globCB0[115];

 

 

public OnFilterScriptInit()

{

print("=======================================");

print("=======[FS]Gun car _ vytvotil "S.G"==========");

print(" =======TENTO FS JE VYĽMY COOL==========");

print("=======================================");

glob338 = SetTimer("GO", 150, true);

return 1;

}

 

public OnFilterScriptExit()

{

return KillTimer(glob338);

}

 

public OnPlayerDisconnect(playerid, reason)

{

return glob97C[playerid] = 0;

}

 

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

{

if(functionA40(vehicleid))

{

glob65C[playerid] = 1;

}

return 1;

}

 

public OnPlayerExitVehicle(playerid, vehicleid)

{

glob65C[playerid] = 2;

return 1;

}

 

public GO()

{

for(new var0 = 0; var0 < 200; var0++)

{

new var1 = GetPlayerVehicleID(var0);

if(glob97C[var0] == 1)

{

if(IsPlayerConnected(var0))

{

GetPlayerKeys(var0, globC9C, globCA0, globCA4);

if(GetPlayerState(var0) == 2)

{

if(globC9C == 16384)

{

glob33C[var0] = glob33C[var0] + 15;

}

if(globC9C == 8192)

{

glob33C[var0] = 1112014848;

}

if(globC9C == 4)

{

GetVehiclePos(var1, 0.0, 0.0, 0.0);

function7DC(var0, 0.0, 0.0, glob33C[var0]);

CreateExplosion(globCA8, globCAC, globCB0, 10, 5.0);

}

if(glob65C[var0] == 1)

{

glob0[var0] = CreateObject(3267, glob320, glob324, 0.5 + glob328, glob334, glob330, glob32C);

glob33C[var0] = 1112014848;

AttachObjectToPlayer(glob0[var0], var0, glob320, glob324, 0.5 + glob328, glob334, glob330, glob32C);

glob65C[var0] = 0;

}

if(glob65C[var0] == 2)

{

DestroyObject(glob0[var0]);

glob65C[var0] = 0;

}

}

}

}

}

return 1;

}

 

function7DC(arg0, &Float:arg1, &Float:arg2, Float:arg3)

{

new Float:var0 = 0.0;

GetVehiclePos(arg0, arg1, arg2, var0);

if(GetPlayerState(arg0) == 2)

{

GetVehicleZAngle(GetPlayerVehicleID(arg0), var0);

}

else

{

GetPlayerFacingAngle(arg0, var0);

}

arg1 = arg1 + (arg3 * floatsin(-var0, 1));

arg2 = arg2 + (arg3 * floatcos(-var0, 1));

return var0;

}

 

functionA40(arg0)

{

new var0[79] = { 400, 401, 405, 409, 410, 411, 412, 415, 419, 421, 422, 426, 429, 439, 442, 451, 458, 466, 467, 470, 475, 477, 478, 479, 480, 491, 492, 494, 496, 502, 503, 504, 506, 516, 517, 518, 526, 527, 529, 531, 533, 534, 535, 536, 539, 540, 541, 542, 543, 545, 546, 547, 549, 550, 551, 555, 558, 559, 560, 561, 562, 565, 566, 571, 572, 575, 576, 579, 580, 583, 585, 587, 589, 596, 597, 598, 599, 601, 602 };

for(new var1 = 0; var1 < 79; var1++)

{

if(GetVehicleModel(arg0) == var0[var1])

{

return 1;

}

}

return 0;

}

 

public OnPlayerCommandText(playerid, cmdtext)

{

if(!strcmp("/gunon", cmdtext, true, 10))

{

glob97C[playerid] = 1;

SendClientMessage(playerid, 0x5BC476FF, "Nastavili ste si {00FF00}RAKETOMET na aute !");

return 1;

}

if(!strcmp("/gunoff", cmdtext, true, 10))

{

glob97C[playerid] = 0;

SendClientMessage(playerid, 0xFF0000AA, "Vypli ste si {00FF00}RAKETOMET na aute !");

return 1;

}

return 0;

}

 

<<!!nejake screeny su dole!! >>

post-10888-0-71419000-1355761929_thumb.png

post-10888-0-19704100-1355761968_thumb.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...