30.07.2007, 15:56
Hi, i have this scripts running on my server but i have a question:
How can i place the ramp a little bit further away?
i use now id 1655 becose its bigger. and i set the timing to 3000.
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;
}
i use now id 1655 becose its bigger. and i set the timing to 3000.

