27.06.2007, 03:57
Tramplins Spawn Filter Script create object tramp(1245) when player sit at any vehicle and press lmb or alt(as deafult)
Count of tramp unlimited, it\'s not sunc, becouse used CreatePlayerObject.
Tramps auto destroyed below 1.5sec
PasteBin PWN
tramp.amx
Count of tramp unlimited, it\'s not sunc, becouse used CreatePlayerObject.
Tramps auto destroyed below 1.5sec
PasteBin PWN
tramp.amx
pawn Code:
#include <a_samp>
forward DelObj(playerid,Obj);
public DelObj(playerid,Obj)DestroyPlayerObject(playerid,Obj);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_FIRE)) {
if (IsPlayerInAnyVehicle(playerid)) {
new Float:x,Float:y,Float:z;
new Float:x2,Float:y2,Float:az;
GetPlayerPos(playerid,x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid), az);
x2 = x + (10 * floatsin(-az+5, degrees));
y2 = y + (10 * floatcos(-az+5, degrees));
new Obj=CreatePlayerObject(playerid,1245,x2,y2,z,0,0,az-90);
SetTimerEx("DelObj",1500,0,"d d",playerid,Obj);
}
}
}
public OnFilterScriptInit()
{
print("
----------------------------------");
print(" De[M]oN\'s [FS] Tramplins Spawn");
print("----------------------------------
");
return 1;
}