stock CarRespawn2(playerid,rendszam[12]) {new rspveh = GetPlayerVehicleID(playerid);new Float:rsX, Float:rsY, Float:rsZ, Float:rsrotZ,vw = GetVehicleVirtualWorld(rspveh);SetVehicleNumberPlate(rspveh,rendszam);GetVehiclePos(rspveh,rsX,rsY,rsZ);GetVehicleZAngle(rspveh,rsrotZ);SetVehicleToRespawn(rspveh);SetVehiclePos(rspveh,rsX,rsY,rsZ);SetVehicleZAngle(rspveh,rsrotZ);SetVehicleVirtualWorld(rspveh,vw);}
stock CarRespawn2(playerid) {new rspveh = GetPlayerVehicleID(playerid);new Float:rsX, Float:rsY, Float:rsZ, Float:rsrotZ,vw = GetVehicleVirtualWorld(rspveh);GetVehiclePos(rspveh,rsX,rsY,rsZ);GetVehicleZAngle(rspveh,rsrotZ);SetVehicleToRespawn(rspveh);SetVehiclePos(rspveh,rsX,rsY,rsZ);SetVehicleZAngle(rspveh,rsrotZ);SetVehicleVirtualWorld(rspveh,vw);}
stock CarRespawn2(playerid,rendszam[12]) {new rspveh = GetPlayerVehicleID(playerid);new Float:rsX, Float:rsY, Float:rsZ, Float:rsrotZ,vw = GetVehicleVirtualWorld(rspveh)seat=GetPlayerVehicleSeat(playerid);if(seat==128) seat=0; //Ha 128-cal térne vissza, akkor a vezetõülésbe rakja visszaSetVehicleNumberPlate(rspveh,rendszam);GetVehiclePos(rspveh,rsX,rsY,rsZ);GetVehicleZAngle(rspveh,rsrotZ);SetVehicleToRespawn(rspveh);SetVehiclePos(rspveh,rsX,rsY,rsZ);SetVehicleZAngle(rspveh,rsrotZ);SetVehicleVirtualWorld(rspveh,vw);PutPlayerInVehicle(playerid, rspveh, seat);}
CMD:rendszam(playerid,params[]){new currentveh;currentveh = GetPlayerVehicleID(playerid);new rendszam[32];if(IsPlayerInAnyVehicle(playerid)) {if(sscanf(params,\"d[50]\",rendszam)) return SendClientMessage(playerid,0xFFFB00AA,\"Használat /rendszam [Újrendszám]\");} else return SendClientMessage(playerid,SZIN_PIROS,\"HIBA: Te nem ülsz jármûben\");SetVehicleNumberPlate(GetPlayerVehicleID(playerid),rendszam);return 1;}
stock CarRespawn2(playerid) {new rspveh = GetPlayerVehicleID(playerid);new Float:rsX, Float:rsY, Float:rsZ, Float:rsrotZ, vw = GetVehicleVirtualWorld(rspveh);GetVehiclePos(rspveh,rsX,rsY,rsZ);GetVehicleZAngle(rspveh,rsrotZ);SetVehicleToRespawn(rspveh);SetVehiclePos(rspveh,rsX,rsY,rsZ);SetVehicleZAngle(rspveh,rsrotZ);SetVehicleVirtualWorld(rspveh,vw);}
CarRespawn2(playerid);