new spawn1;public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/tuningsultan\", true ) == 0 || strcmp(cmdtext, \"/ts\", true ) == 0){new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); spawn1 = CreateVehicle(playerid, X, Y, Z, 90, -1, -1, 5000); PutPlayerInVehicle(playerid, spawn1, 0); return 1;}return 0;}public OnPlayerExitVehicle(){DestroyVehicle(spawn1);return 1;}public OnVehicleSpawn(vehicleid){if (vehicleid == spawn1){AddVehicleComponent(spawn1, 1010);AddVehicleComponent(spawn1, 1029);AddVehicleComponent(spawn1, 1030);AddVehicleComponent(spawn1, 1031);AddVehicleComponent(spawn1, 1033);AddVehicleComponent(spawn1, 1079);AddVehicleComponent(spawn1, 1087);AddVehicleComponent(spawn1, 1139);AddVehicleComponent(spawn1, 1140);AddVehicleComponent(spawn1, 1170);}return 1;}
public OnPlayerCommandText(playerid, cmdtext[]){ new spawn1;if(strcmp(cmdtext, \"/tuningsultan\", true ) == 0 || strcmp(cmdtext, \"/ts\", true ) == 0){ new spawn1;new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); spawn1 = CreateVehicle(playerid, X, Y, Z, 90, -1, -1, 5000); PutPlayerInVehicle(playerid, spawn1, 0); return 1;}return 0;}public OnPlayerExitVehicle(){DestroyVehicle(spawn1);return 1;}public OnVehicleSpawn(vehicleid){if (vehicleid == spawn1){AddVehicleComponent(spawn1, 1010);AddVehicleComponent(spawn1, 1029);AddVehicleComponent(spawn1, 1030);AddVehicleComponent(spawn1, 1031);AddVehicleComponent(spawn1, 1033);AddVehicleComponent(spawn1, 1079);AddVehicleComponent(spawn1, 1087);AddVehicleComponent(spawn1, 1139);AddVehicleComponent(spawn1, 1140);AddVehicleComponent(spawn1, 1170);}return 1;} [/quote]am meg streamer-t használsz? ha igen akkor asszem de nem biztos h nem CreateVehicle hanem CreateDynamicVehicle de lehet tévedek.
public OnPlayerCommandText(playerid, cmdtext[]){ new spawn1;if(strcmp(cmdtext, \"/tuningsultan\", true ) == 0 || strcmp(cmdtext, \"/ts\", true ) == 0){ new spawn1;new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); spawn1 = CreateVehicle(playerid, X, Y, Z, 90, -1, -1, 5000); PutPlayerInVehicle(playerid, spawn1, 0); return 1;}return 0;}public OnPlayerExitVehicle(){DestroyVehicle(spawn1);return 1;}public OnVehicleSpawn(vehicleid){if (vehicleid == spawn1){AddVehicleComponent(spawn1, 1010);AddVehicleComponent(spawn1, 1029);AddVehicleComponent(spawn1, 1030);AddVehicleComponent(spawn1, 1031);AddVehicleComponent(spawn1, 1033);AddVehicleComponent(spawn1, 1079);AddVehicleComponent(spawn1, 1087);AddVehicleComponent(spawn1, 1139);AddVehicleComponent(spawn1, 1140);AddVehicleComponent(spawn1, 1170);}return 1;}
spawn1 = CreateVehicle(playerid, X, Y, Z, 90, -1, -1, 5000);