dcmd_car(playerid, params[]){ if(PInfo[playerid][Level] < 1){ SendClientMessage(playerid, red, \"Nem vagy admin!\");}else{ new vid[30], Float:x, Float:y, Float:z, Float:ang, color1, color2;if(sscanf(params, \"s[20]dd\", vid, color1, color2)) SendClientMessage(playerid, blue, \"[HASZNÁLAT]: /car <jármûnév> <szín1> <szín2>\");else if(color1 > 0 && color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), -1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0);}else if(color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0);}else{ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, color2, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0);}}return 1;}
new name[MAX_PLAYER_NAME], string[128];GetPlayerName(playerid, name, MAX_PLAYER_NAME);format(string, sizeof(string), \"%s(%i) spawnolt egy autót! Model ID: %d | Kordináta: %d\", name, playerid, vehicle, x, y, z);SendClientMessageToAll( 0xAA3333AA, string);
dcmd_car(playerid, params[]){ new name[MAX_PLAYER_NAME],string[128]; if(PInfo[playerid][Level] < 1){ SendClientMessage(playerid, red, \"Nem vagy admin!\");}else{ new vid[30], Float:x, Float:y, Float:z, Float:ang, color1, color2;if(sscanf(params, \"s[20]dd\", vid, color1, color2)) SendClientMessage(playerid, blue, \"[HASZNÁLAT]: /car <jármunév> <szín1> <szín2>\");else if(color1 > 0 && color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), -1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%i) spawnolt egy autót! Model ID: %d | Kordináta: %d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll( 0xAA3333AA, string);}else if(color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%i) spawnolt egy autót! Model ID: %d | Kordináta: %d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll( 0xAA3333AA, string);}else{ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, color2, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"%s(%i) spawnolt egy autót! Model ID: %d | Kordináta: %d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll( 0xAA3333AA, string);}}return 1;}
CMD:car(playerid, params[]){ new name[MAX_PLAYER_NAME],string[128]; if(PInfo[playerid][Level] < 1){ SendClientMessage(playerid, red, \"Nem vagy admin!\");}else{ new vid[30], Float:x, Float:y, Float:z, Float:ang, color1, color2;if(sscanf(params, \"s[20]dd\", vid, color1, color2)) SendClientMessage(playerid, blue, \"[HASZNÁLAT]: /car (név) (szín1) (szín2) \");else if(color1 > 0 && color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), -1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"Admin %s(id%i) spawnolt egy autót! Model ID: %d | Kordináta:X:%d Y:%d Z:%d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll(yellow, string); PutPlayerInVehicle(playerid,vehicle2,0);}else if(color2 > 0){ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, -1, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"Admin %s(id%i) spawnolt egy autót! Model ID: %d | Kordináta:X:%d Y:%d Z:%d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll( 0xAA3333AA, string); PutPlayerInVehicle(playerid,vehicle2,0);}else{ new vehicle; vehicle = GetVehicleModelIDFromName(vid); GetPlayerPos(playerid, x, y, z); new vehicle2 = CreateVehicle(vehicle, x, y, z, GetPlayerFacingAngle(playerid, ang), color1, color2, -1); PutPlayerInVehicle(playerid, vehicle2, 0); PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"Admin %s(id%i) spawnolt egy autót! Model ID: %d | Kordináta:X:%d Y:%d Z:%d\", name, playerid, vehicle, x, y, z); SendClientMessageToAll( 0xAA3333AA, string); PutPlayerInVehicle(playerid,vehicle2,0);}}return 1;}