////////////////////////////////////////////////////Ramping system By [icE_aGe]/////////////////////////////////////////////////////#include <a_samp>#define RAMP 1632#define tavolsag 15.0#define ido 5000stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, &Float:a){GetPlayerPos(playerid, x, y, z);GetPlayerFacingAngle(playerid, a);if (GetPlayerVehicleID(playerid)){ GetVehicleZAngle(GetPlayerVehicleID(playerid), a);}x += (tavolsag * floatsin(-a, degrees));y += (tavolsag * floatcos(-a, degrees));}new tempkey, ramp;new Float: X, Float: Y, Float: Z, Float: A;forward Delete(objectid);new beirta[MAX_PLAYERS];public OnPlayerConnect(playerid){beirta[playerid]=0;return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/ramp on\", true)) { SendClientMessage(playerid, 0xFFFFFFFF, \"Mostantol a CTRL-töl elötted megjelenik egy szöktetõ\"); beirta[playerid]=1; return 1;} if(!strcmp(cmdtext, \"/ramp off\", true)) { SendClientMessage(playerid, 0xFFFFFFFF, \"Mostantol nem jelenik meg a szöktetõ\"); beirta[playerid]=0; return 1;} return 0;}public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){tempkey = newkeys - oldkeys;if(tempkey == KEY_ACTION){if (IsPlayerInAnyVehicle(playerid)) { if (beirta[playerid] == 1) { GetXYInFrontOfPlayer(playerid, X, Y, Z, A); ramp = CreateObject(RAMP, X, Y, Z, 0.0, 0.0, A); SetTimerEx(\"Delete\", ido, 0, \"d\", ramp); }}}return 1;}public Delete(objectid){DestroyObject(objectid);return 1;}
#include a_samp #define DRIFT_MINKAT 10.0 #define DRIFT_MAXKAT 90.0 #define COLOR_LIGHTRED 0xFF0000FF #define COLOR_LIGHTBLUE 0x33CCFFAA #define DRIFT_SPEED 30.0 #pragma tabsize 0 #pragma unused GetPlayerTheoreticAngle new Float:ppos[200][3]; enum Float:Pos{ Float:sX,Float:sY,Float:sZ }; new Float:SavedPos[MAX_PLAYERS][Pos]; new DriftPointsNow[200]; new PunktyDriftuGracza[200]; new Text:DriftTD[200]; forward LicznikDriftu(); forward clock(); forward PodsumowanieDriftu(playerid); public OnFilterScriptInit(){ for(new x=0;x<200;x++){DriftTD