dcmd_v(playerid, params[]){new Index; new tmp[256]; tmp = strtok(params,Index);new tmp2[256]; tmp2 = strtok(params,Index);new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(tmp)) returnSendClientMessage(playerid, COLOR_ORANGE, \"{8F698F}Használat: {FF0606}/v {99FF00}[modelid/jármûnév] {0000FF}[szín1] {FF9933}[szín2]\");new car;new string[128];new colour1, colour2; if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp);if(car < 400 || car > 611) return SendClientMessage(playerid, BALTA, \"{FF0606}Hiba: {00BFFF}Nincs ilyen jármû!\");if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3); if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);new Float:X,Float:Y,Float:Z;new Float:Angle,int1;new LVehicleID = GetPlayerVehicleID(playerid);GetPlayerPos(playerid, X,Y,Z);GetPlayerFacingAngle(playerid,Angle);int1 = GetPlayerInterior(playerid);SpawnedVehicles[playerid] = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1);LinkVehicleToInterior(LVehicleID,int1);PlayerPlaySound(playerid,1085,0,0,0);PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);format(string, sizeof(string), \"{FF0606}Jármû lerakva! {33AA33}Név: {FFFFFF}%s | {33AA33}(Model ID: %d) | {FFFFFF}Szín1: %d, {33AA33}Szín2: %d\", VehicleNames[dodo], car, colour1, colour2);return SendClientMessage(playerid,COLOR_ORANGE,string);}
if(car < 400 || car > 611) return [/quote]ez minek bele? nemtom a kocsi id-ket de lehet h nincs benne a 400-611-ig ben sztem töröld
CMD:v(playerid, params[]){new Index; new tmp[256]; tmp = strtok(params,Index);new tmp2[256]; tmp2 = strtok(params,Index);new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(tmp)) returnSendClientMessage(playerid, COLOR_RED, \"{FF0000}Használat: {057CEA}/v {33FF33}[modelid/jármunév] {CDF917}[szín1] {33CCFF}[szín2]\");new car;new colour1, colour2; if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp);if(car < 400 || car > 611) return SendClientMessage(playerid, BALTA, \"{CDF917}Hiba: Nincs ilyen jármu!\");if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3); if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);new Float:X,Float:Y,Float:Z;new Float:Angle,int1;new LVehicleID = GetPlayerVehicleID(playerid);GetPlayerPos(playerid, X,Y,Z);GetPlayerFacingAngle(playerid,Angle);int1 = GetPlayerInterior(playerid);SpawnedVehicles[playerid] = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1);LinkVehicleToInterior(LVehicleID,int1);PlayerPlaySound(playerid,1085,0,0,0);PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);format(string, sizeof(string), \"{FF0000}Jármu lerakva! {057CEA}Név: %s | {33FF33}(Model ID: %d) |{CDF917} Szín1: %d, {33CCFF}Szín2: %d\", VehicleNames[car-400], car, colour1, colour2);return SendClientMessage(playerid,COLOR_ORANGE,string);}
dcmd_v(playerid, params[]){ new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_ORANGE, \"{8F698F}Használat: {FF0606}/v {99FF00}[modelid/jármûnév] {0000FF}[szín1] {FF9933}[szín2]\"); new car; new string[128]; new colour1, colour2; if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp); if(car < 400 || car > 611) return SendClientMessage(playerid, BALTA, \"{FF0606}Hiba: {00BFFF}Nincs ilyen jármû!\"); if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2); if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3); if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]); new Float:X,Float:Y,Float:Z; new Float:Angle,int1; new LVehicleID = GetPlayerVehicleID(playerid); GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle); int1 = GetPlayerInterior(playerid); SpawnedVehicles[playerid] = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1); LinkVehicleToInterior(LVehicleID,int1); PlayerPlaySound(playerid,1085,0,0,0); PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0); format(string, sizeof(string), \"{FF0606}Jármû lerakva! {33AA33}Név: {FFFFFF}%s | {33AA33}(Model ID: %d) | {FFFFFF}Szín1: %d, {33AA33}Szín2: %d\", VehicleNames[car-400], car, colour1, colour2); return SendClientMessage(playerid,COLOR_ORANGE,string);}