#include <a_samp>#define SZIN_FEHER 0xFFFFFFAA#define SZIN_PIROS 0xAA3333AA#define SZIN_ZOLD 0x33AA33AA#define SZIN_VILAGOSKEK 0x33CCFFAAnew SpawnedVehicles[MAX_PLAYERS];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Jármû váltó by Bazsi\");print(\"--------------------------------------\\n\");return 1;}public OnPlayerConnect(playerid){SendClientMessage(playerid, SZIN_PIROS, \"Jármû váltó\");SendClientMessage(playerid, SZIN_FEHER, \"by Bazsi\");SendClientMessage(playerid, SZIN_ZOLD, \"Kezdéshez: /kezdés\");return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/kezdés\", cmdtext, true, 10) == 0){SetPlayerInterior(playerid, 0);SetPlayerPos(playerid, -304.8360,1514.0095,74.9239);SendClientMessage(playerid, SZIN_VILAGOSKEK, \"Elteleportáltad magad!\");SendClientMessage(playerid, SZIN_VILAGOSKEK, \"Most írd be: /kezdés2\");}if (strcmp(\"/kezdés2\", cmdtext, true, 10) == 0){ {new Float:X,Float:Y,Float:Z,Float:ROT;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,ROT);SpawnedVehicles[playerid] = CreateVehicle(522,X,Y,Z,ROT,-1,-1,60);PutPlayerInVehicle(playerid, SpawnedVehicles[playerid], 0);SetPlayerCheckpoint(playerid, -329.6213,1346.8270,54.4207, 3.0);SendClientMessage(playerid, SZIN_PIROS, \"NRG létrehozva!\");SendClientMessage(playerid, SZIN_PIROS, \"Menj a cp-be!\");}return 1;}return 0;}public OnPlayerEnterCheckpoint(playerid){new NRG;NRG = GetPlayerVehicleID(playerid);DestroyVehicle(NRG);DisablePlayerCheckpoint(playerid);new Float:X,Float:Y,Float:Z,Float:ROT;GetPlayerPos(playerid,X,Y,Z);GetPlayerFacingAngle(playerid,ROT);SpawnedVehicles[playerid] = CreateVehicle(481,X,Y,Z,ROT,-1,-1,60);PutPlayerInVehicle(playerid, SpawnedVehicles[playerid], 0);SetPlayerCheckpoint(playerid, -329.6213,1346.8270,54.4207, 3.0);SendClientMessage(playerid, 0xFFFFFFFF, \"Átváltottál BMX-re!\");DisablePlayerCheckpoint(playerid);}
#include <a_samp>public OnPlayerCommandText(playerid, cmdtext[]){if(!strcmp(cmdtext, \"/nrgpk\", true)){if(IsPlayerInAnyVehicle(playerid)){ new Float:var8 = 0.0; new Float:var9 = 0.0; new Float:var10 = 0.0; new var11 = 0; GetPlayerPos(playerid, var8, var9, var10); var11 = GetPlayerVehicleID(playerid); SetVehiclePos(var11, 4163.9414,-3785.0193,39.9846);}else{ new Float:var8 = 0.0; new Float:var9 = 0.0; new Float:var10 = 0.0; GetPlayerPos(playerid, var8, var9, var10); SetPlayerPos(playerid, 4163.9414,-3785.0193,39.9846); SendClientMessage(playerid, 0x87CEEBFF, \"Elteleportáltál az nrgpk-ra!\");}return 1;}return 0;}
#include <a_samp>#define SZIN_FEHER 0xFFFFFFAA#define SZIN_PIROS 0xAA3333AA#define SZIN_ZOLD 0x33AA33AA#define SZIN_VILAGOSKEK 0x33CCFFAAnew SpawnedVehicles[MAX_PLAYERS];new nrgpkch;public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/nrgpk\", cmdtext, true, 10) == 0){if(IsPlayerInAnyVehicle(playerid)){ new i_str [ 64 ]; new Float:var8 = 0.0; new Float:var9 = 0.0; new Float:var10 = 0.0; new var11 = 0; GetPlayerPos(playerid, var8, var9, var10); var11 = GetPlayerVehicleID(playerid); SetVehiclePos(var11, 4163.9414,-3785.0193,39.9846); GetPlayerName ( playerid, i_str, 64 ); format ( i_str, 128, \"%s elteleportált az nrgpk-ra /nrgpk\", i_str ); SendClientMessageToAll (0x7FFF00FF, i_str );}else{ new Float:X,Float:Y,Float:Z,Float:ROT; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,ROT); SpawnedVehicles[playerid] = CreateVehicle(522,X,Y,Z,ROT,-1,-1,60); PutPlayerInVehicle(playerid, SpawnedVehicles[playerid], 0); nrgpkch=SetPlayerCheckpoint(playerid, 4378.1782,-3646.5149,39.9444,3.0); SendClientMessage(playerid, SZIN_PIROS, \"NRG létrehozva!\"); new i_str [ 64 ]; new Float:var8 = 0.0; new Float:var9 = 0.0; new Float:var10 = 0.0; GetPlayerPos(playerid, var8, var9, var10); SpawnedVehicles[playerid] = GetPlayerVehicleID(playerid); SetVehiclePos(SpawnedVehicles[playerid], 4163.9414,-3785.0193,39.9846); GetPlayerName ( playerid, i_str, 64 ); format ( i_str, 128, \"%s elteleportált az nrgpk-ra /nrgpk\", i_str ); SendClientMessageToAll (0x7FFF00FF, i_str );}}return 0;}